diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-25 17:56:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-25 17:56:10 +0000 |
commit | 4bbf8999f4d93c5da77737ccf06a1aa67225d3f4 (patch) | |
tree | 3b4c86746c51d3c123d97e381b1064a75e2462ca /stdlib/tst-strtod.c | |
parent | af9f1c486e9f41637aac1e0dd4fd192a23a0d150 (diff) | |
download | glibc-4bbf8999f4d93c5da77737ccf06a1aa67225d3f4.tar.gz glibc-4bbf8999f4d93c5da77737ccf06a1aa67225d3f4.tar.xz glibc-4bbf8999f4d93c5da77737ccf06a1aa67225d3f4.zip |
* stdlib/strtod_l.c (round_and_return): We have to set errno to
ERANGE for underflows. * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
Diffstat (limited to 'stdlib/tst-strtod.c')
-rw-r--r-- | stdlib/tst-strtod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index 628e40ca39..c30eb1ee12 100644 --- a/stdlib/tst-strtod.c +++ b/stdlib/tst-strtod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,96,97,98,99,2000,2001,2003 Free Software Foundation, Inc. +/* Copyright (C) 1991,1996-2001,2003,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -61,10 +61,10 @@ static const struct ltest tests[] = { "0x00.0014p19", 160.0, '\0', 0 }, { "0x1p-1023", 1.11253692925360069154511635866620203210960799023116591527666e-308, - '\0', 0 }, + '\0', ERANGE }, { "0x0.8p-1022", 1.11253692925360069154511635866620203210960799023116591527666e-308, - '\0', 0 }, + '\0', ERANGE }, #if __GNUC_PREREQ(2,96) /* For older GCC release HUGE_VAL is not a constant. */ { "Inf", HUGE_VAL, '\0', 0 }, |