mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
[BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
This commit is contained in:
@@ -37,10 +37,9 @@ extern unsigned long long int ____strtoull_l_internal (const char *, char **,
|
||||
#define SET_MANTISSA(flt, mant) \
|
||||
do { union ieee754_float u; \
|
||||
u.f = (flt); \
|
||||
if ((mant & 0x7fffff) == 0) \
|
||||
mant = 0x400000; \
|
||||
u.ieee.mantissa = (mant) & 0x7fffff; \
|
||||
(flt) = u.f; \
|
||||
u.ieee_nan.mantissa = (mant); \
|
||||
if (u.ieee.mantissa != 0) \
|
||||
(flt) = u.f; \
|
||||
} while (0)
|
||||
|
||||
#include "strtod_l.c"
|
||||
|
Reference in New Issue
Block a user