]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #5995]
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2008 17:17:40 +0000 (17:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2008 17:17:40 +0000 (17:17 +0000)
2008-03-29  Ulrich Drepper  <drepper@redhat.com>
[BZ #5995]
* stdlib/strtod_l.c: Use correct sign for result in one more
underflow case.
Patch by Eric Blake <ebb9@byu.net>.

ChangeLog
stdlib/strtod_l.c

index c3ff8320a8f229a7f570dd6b8db8f8fa371cc4aa..8579ce953967dec3cb97e0b00f05fa8b608fcb03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-03-29  Ulrich Drepper  <drepper@redhat.com>
+
+       [BZ #5995]
+       * stdlib/strtod_l.c: Use correct sign for result in one more
+       underflow case.
+       Patch by Eric Blake <ebb9@byu.net>.
+
 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
index 9c2f86a32b7301c957d0bd9f7961e126000cb7fe..09a8f9bb3b766cfaabe7c3878c3da824a46513ae 100644 (file)
@@ -1028,7 +1028,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
   if (__builtin_expect (exponent < MIN_10_EXP - (DIG + 1), 0))
     {
       __set_errno (ERANGE);
-      return 0.0;
+      return negative ? -0.0 : 0.0;
     }
 
   if (int_no > 0)