Fix typos.
authorEric Blake <ebb9@byu.net>
Tue, 1 Apr 2008 13:50:28 +0000 (07:50 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 1 Apr 2008 13:50:28 +0000 (07:50 -0600)
* tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
values to be the right type.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-strtod.c

index aa673e4..ba14306 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-04-01  Eric Blake  <ebb9@byu.net>
 
+       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
index 0d1cea1..a2caacb 100644 (file)
@@ -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;