From 390ce1819c94f1101d8518480afd2328593cec6c Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 1 Apr 2008 07:47:40 -0600 Subject: [PATCH] Fix typo. 1 ulp of (double)1.0 is DBL_EPSILON, not FLT_EPSILON. Signed-off-by: Eric Blake --- tests/test-strtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-strtod.c b/tests/test-strtod.c index d7898becad..0d1cea1907 100644 --- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -160,7 +160,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) < FLT_EPSILON); + ASSERT (abs (result - 0.5) < DBL_EPSILON); ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -243,7 +243,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) < FLT_EPSILON); + ASSERT (abs (result - 0.5) < DBL_EPSILON); ASSERT (ptr == input + 4); ASSERT (errno == 0); } -- 2.30.2