diff options
Diffstat (limited to 'wcsmbs/wcstof.c')
-rw-r--r-- | wcsmbs/wcstof.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wcsmbs/wcstof.c b/wcsmbs/wcstof.c index ef1448b096..f410e4cf32 100644 --- a/wcsmbs/wcstof.c +++ b/wcsmbs/wcstof.c @@ -30,6 +30,8 @@ #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; \ } while (0) |