1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
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>.
This commit is contained in:
Ulrich Drepper
2008-03-29 17:17:40 +00:00
parent 48cc060e64
commit 1c27266549
2 changed files with 8 additions and 1 deletions

View 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)