From: ceriel Date: Wed, 11 Oct 1989 13:34:05 +0000 (+0000) Subject: bug fix in rounding for 4-byte floating point numbers X-Git-Tag: release-5-5~2238 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ebcd62f7d2d399a3571e5cdaa925a339f935da0b;p=ack.git bug fix in rounding for 4-byte floating point numbers --- 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++;