From 1c2726654998bb7071d3d2becb4e5265b6f253ce Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 29 Mar 2008 17:17:40 +0000 Subject: [BZ #5995] 2008-03-29 Ulrich Drepper [BZ #5995] * stdlib/strtod_l.c: Use correct sign for result in one more underflow case. Patch by Eric Blake . --- stdlib/strtod_l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/strtod_l.c') 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) -- cgit v1.1