]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - wcsmbs/wcstof.c
Update.
[thirdparty/glibc.git] / wcsmbs / wcstof.c
index ef1448b0962bc751c22ee126bf42025cfd836370..f410e4cf32c972fd5c8a09e15779b90b87f343c4 100644 (file)
@@ -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)