From: Eric Blake Date: Tue, 1 Apr 2008 13:47:40 +0000 (-0600) Subject: Fix typo. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=390ce1819c94f1101d8518480afd2328593cec6c;p=pspp Fix typo. 1 ulp of (double)1.0 is DBL_EPSILON, not FLT_EPSILON. Signed-off-by: Eric Blake --- 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); }