diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/strtod_l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index e13f1086da..b9c2769224 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -888,7 +888,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) --expp; --dig_no; --int_no; - ++exponent; + exponent += base == 16 ? 4 : 1; } while (dig_no > 0 && exponent < 0); |