From ebcd62f7d2d399a3571e5cdaa925a339f935da0b Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 11 Oct 1989 13:34:05 +0000 Subject: [PATCH] bug fix in rounding for 4-byte floating point numbers --- mach/con_float | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/con_float b/mach/con_float index a86701cf6..5424a867d 100644 --- a/mach/con_float +++ b/mach/con_float @@ -77,7 +77,7 @@ float_cst(str, sz, buf) e.flt_exp += 127; if (e.flt_mantissa.flt_h_32 == 0) e.flt_exp = 0; #ifdef IEEEFLOAT - if (e.flt_mantissa.flt_l_32 & 0x80) { + if (e.flt_mantissa.flt_h_32 & 0x80) { /* rounding */ if ((e.flt_mantissa.flt_h_32 & 0xffffff00) == 0xffffff00) { e.flt_exp++; -- 2.34.1