diff options
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r-- | stdlib/strtod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c index 4a3c8a2725..f2ff79f6df 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -824,7 +824,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM) } /* Adjust the exponent for the bits we are shifting in. */ - exponent += bits - 1; + exponent += bits - 1 + (int_no - 1) * 4; while (--dig_no > 0 && idx >= 0) { |