mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix strtod rounding of half the least subnormal (bug 16151).
This commit is contained in:
@ -228,7 +228,7 @@ round_and_return (mp_limb_t *retval, intmax_t exponent, int negative,
|
||||
|
||||
round_limb = retval[RETURN_LIMB_SIZE - 1];
|
||||
round_bit = (MANT_DIG - 1) % BITS_PER_MP_LIMB;
|
||||
for (i = 0; i < RETURN_LIMB_SIZE; ++i)
|
||||
for (i = 0; i < RETURN_LIMB_SIZE - 1; ++i)
|
||||
more_bits |= retval[i] != 0;
|
||||
MPN_ZERO (retval, RETURN_LIMB_SIZE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user