From 64902eb26d25feae17230a246608d1dfe74801e8 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 1 Apr 2008 07:50:28 -0600 Subject: [PATCH] Fix typos. * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon values to be the right type. Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ tests/test-strtod.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa673e4c6..ba14306e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-01 Eric Blake + Fix typos. + * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon + values to be the right type. + For now, cater to gnulib strtod inaccuracies. * tests/test-strtod.c (main): Allow 1-ulp error on expected fractional results. While not as nice from a QoI perspective, it diff --git a/tests/test-strtod.c b/tests/test-strtod.c index 0d1cea190..a2caacb02 100644 --- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -514,7 +514,7 @@ main () double result; errno = 0; result = strtod (input, &ptr); - ASSERT (0.0 <= result && result <= FLT_MIN); + ASSERT (0.0 <= result && result <= DBL_MIN); ASSERT (!signbit (result)); ASSERT (ptr == input + 9); ASSERT (errno == ERANGE); @@ -525,7 +525,7 @@ main () double result; errno = 0; result = strtod (input, &ptr); - ASSERT (-FLT_MIN <= result && result <= 0.0); + ASSERT (-DBL_MIN <= result && result <= 0.0); #if 0 /* FIXME - this is glibc bug 5995; POSIX allows returning positive 0 on negative underflow, even though quality of implementation @@ -910,7 +910,7 @@ main () /* Rounding. */ /* TODO - is it worth some tests of rounding for typical IEEE corner cases, such as .5 ULP rounding up to the smallest denormal and - not causing underflow, or FLT_MIN - .5 ULP not causing an + not causing underflow, or DBL_MIN - .5 ULP not causing an infinite loop? */ return status; -- 2.11.0