Mercurial > hg > octave-kai > gnulib-hg
changeset 9852:11f28e5a589f
Fix typo.
1 ulp of (double)1.0 is DBL_EPSILON, not FLT_EPSILON.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Tue, 01 Apr 2008 07:47:40 -0600 |
parents | b664f16dd724 |
children | 41ff75af4085 |
files | tests/test-strtod.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -160,7 +160,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) < FLT_EPSILON); + ASSERT (abs (result - 0.5) < DBL_EPSILON); ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -243,7 +243,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) < FLT_EPSILON); + ASSERT (abs (result - 0.5) < DBL_EPSILON); ASSERT (ptr == input + 4); ASSERT (errno == 0); }