aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtod_l.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-12-10 00:03:22 +0000
committerUlrich Drepper <drepper@redhat.com>2006-12-10 00:03:22 +0000
commitd117c1ce4df93249471a63a4d6baad0bcbc5a988 (patch)
tree877ae92f57c7a784fb75bbf81d767725cebbf904 /stdlib/strtod_l.c
parenta822d9f4461c2b26e2d6f2671baad28c2c6f80d2 (diff)
downloadglibc-d117c1ce4df93249471a63a4d6baad0bcbc5a988.tar
glibc-d117c1ce4df93249471a63a4d6baad0bcbc5a988.tar.gz
glibc-d117c1ce4df93249471a63a4d6baad0bcbc5a988.tar.bz2
glibc-d117c1ce4df93249471a63a4d6baad0bcbc5a988.zip
[BZ #3674]
2006-12-09 Ulrich Drepper <drepper@redhat.com> [BZ #3674] * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value correctly if removing trailing zero of hex-float.
Diffstat (limited to 'stdlib/strtod_l.c')
-rw-r--r--stdlib/strtod_l.c2
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);