bug fix in rounding for 4-byte floating point numbers
This commit is contained in:
parent
c7d0d1d447
commit
ebcd62f7d2
@ -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++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user