]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #3674]
authorUlrich Drepper <drepper@redhat.com>
Sun, 10 Dec 2006 00:03:22 +0000 (00:03 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 10 Dec 2006 00:03:22 +0000 (00:03 +0000)
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.

ChangeLog
stdlib/strtod_l.c

index 0f84b8c17106cd28343308bbdb76f1aaa322b807..3400be76ac0163a3fd0831d1ddee3410e1913e50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
 
        * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
index e13f1086daaf27ea69f743585cc308b6b2b579b8..b9c2769224e4a7c3730f9cead979bfcfb3416f04 100644 (file)
@@ -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);