mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
Change error code for underflows in strtod
This commit is contained in:
parent
56d4baf3bd
commit
9895c8bc62
@ -1,3 +1,8 @@
|
||||
2011-06-22 Marek Polacek <mpolacek@redhat.com>
|
||||
|
||||
[BZ #9696]
|
||||
* stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
|
||||
|
||||
2011-07-06 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
|
||||
|
4
NEWS
4
NEWS
@ -1,4 +1,4 @@
|
||||
GNU C Library NEWS -- history of user-visible changes. 2011-6-28
|
||||
GNU C Library NEWS -- history of user-visible changes. 2011-7-6
|
||||
Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
See the end for copying conditions.
|
||||
|
||||
@ -9,7 +9,7 @@ Version 2.15
|
||||
|
||||
* The following bugs are resolved with this release:
|
||||
|
||||
12874, 12885, 12907, 12935
|
||||
9696, 12874, 12885, 12907, 12935
|
||||
|
||||
* New program pldd to list loaded object of a process
|
||||
Implemented by Ulrich Drepper.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Convert string representing a number to float value, using given locale.
|
||||
Copyright (C) 1997,1998,2002,2004,2005,2006,2007,2008,2009,2010
|
||||
Copyright (C) 1997,1998,2002,2004,2005,2006,2007,2008,2009,2010,2011
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
@ -185,7 +185,7 @@ round_and_return (mp_limb_t *retval, int exponent, int negative,
|
||||
|
||||
if (shift > MANT_DIG)
|
||||
{
|
||||
__set_errno (EDOM);
|
||||
__set_errno (ERANGE);
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user