diff options
Diffstat (limited to 'stdlib/strtof.c')
-rw-r--r-- | stdlib/strtof.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/strtof.c b/stdlib/strtof.c index 0a0046daf9..026b5eead3 100644 --- a/stdlib/strtof.c +++ b/stdlib/strtof.c @@ -9,6 +9,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) |