summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-06 20:57:55 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-06 20:57:55 -0400
commit9895c8bc62759a2d7abf95654fb2aefe5677a930 (patch)
tree8ded35a6ac3313127aded751360465ba49a26c69 /stdlib
parent56d4baf3bd18619983bbc9826ad4296a8067efc1 (diff)
downloadglibc-9895c8bc62759a2d7abf95654fb2aefe5677a930.tar.gz
Change error code for underflows in strtod
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strtod_l.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
index 537d1fbc61..b3380fdba3 100644
--- a/stdlib/strtod_l.c
+++ b/stdlib/strtod_l.c
@@ -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;
}