diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-29 17:17:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-29 17:17:40 +0000 |
commit | 1c2726654998bb7071d3d2becb4e5265b6f253ce (patch) | |
tree | 6971212683361128b595de375893bec01f89ada6 /stdlib | |
parent | 48cc060e647616fd0368e409944d8361221569e6 (diff) | |
download | glibc-1c2726654998bb7071d3d2becb4e5265b6f253ce.zip glibc-1c2726654998bb7071d3d2becb4e5265b6f253ce.tar.gz glibc-1c2726654998bb7071d3d2becb4e5265b6f253ce.tar.bz2 |
[BZ #5995]
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>.
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 9c2f86a..09a8f9b 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -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) |