test-strtod: fix typos: s/abs/fabs/
authorJim Meyering <meyering@redhat.com>
Mon, 14 Apr 2008 08:20:22 +0000 (10:20 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 14 Apr 2008 08:20:22 +0000 (10:20 +0200)
* tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".

ChangeLog
tests/test-strtod.c

index 5b205be0a3cd70edbb2563be279a2c4aa85fb154..6d6fd8d85d27386b0bcdda01d4b39a8fda786eff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-14  Jim Meyering  <meyering@redhat.com>
+
+       test-strtod: fix typos: s/abs/fabs/
+       * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
+
 2008-04-13  Bruno Haible  <bruno@clisp.org>
 
        Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
index 6c63e138dd68b42a6e3e46442c4beaf9b0806676..12d3606fe03abe792fee04fe72f0c2aaa59cc0f0 100644 (file)
@@ -163,7 +163,7 @@ main ()
     /* FIXME - gnulib's version is rather inaccurate.  It would be
        nice to guarantee an exact result, but for now, we settle for a
        1-ulp error.  */
-    ASSERT (abs (result - 0.5) < DBL_EPSILON);
+    ASSERT (fabs (result - 0.5) < DBL_EPSILON);
     ASSERT (ptr == input + 2);
     ASSERT (errno == 0);
   }
@@ -246,7 +246,7 @@ main ()
     /* FIXME - gnulib's version is rather inaccurate.  It would be
        nice to guarantee an exact result, but for now, we settle for a
        1-ulp error.  */
-    ASSERT (abs (result - 0.5) < DBL_EPSILON);
+    ASSERT (fabs (result - 0.5) < DBL_EPSILON);
     ASSERT (ptr == input + 4);
     ASSERT (errno == 0);
   }