Mercurial > hg > octave-lojdl > gnulib-hg
changeset 9920:fe4e6b58eb84
test-strtod: fix typos: s/abs/fabs/
* tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Mon, 14 Apr 2008 10:20:22 +0200 |
parents | 751833dcb7cb |
children | 01cfd65cc7e0 |
files | ChangeLog tests/test-strtod.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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'.
--- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -163,7 +163,7 @@ /* 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 @@ /* 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); }