From: Jim Meyering Date: Mon, 14 Apr 2008 08:20:22 +0000 (+0200) Subject: test-strtod: fix typos: s/abs/fabs/ X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c966a526b7ffa96cfaa014a5301628cda815cd98;p=pspp test-strtod: fix typos: s/abs/fabs/ * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs". --- diff --git a/ChangeLog b/ChangeLog index 5b205be0a3..6d6fd8d85d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-14 Jim Meyering + + test-strtod: fix typos: s/abs/fabs/ + * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs". + 2008-04-13 Bruno Haible Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'. diff --git a/tests/test-strtod.c b/tests/test-strtod.c index 6c63e138dd..12d3606fe0 100644 --- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -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); }