From d117c1ce4df93249471a63a4d6baad0bcbc5a988 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 10 Dec 2006 00:03:22 +0000 Subject: [PATCH] [BZ #3674] 2006-12-09 Ulrich Drepper [BZ #3674] * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value correctly if removing trailing zero of hex-float. --- ChangeLog | 6 ++++++ stdlib/strtod_l.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0f84b8c171..3400be76ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-09 Ulrich Drepper + + [BZ #3674] + * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value + correctly if removing trailing zero of hex-float. + 2006-12-09 Jakub Jelinek * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest. 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);