From 5f7225851cae231465f53318b91b4986ede1c7b4 Mon Sep 17 00:00:00 2001 From: rwst Date: Mon, 22 May 2006 18:36:39 +0000 Subject: [PATCH] fix problems with gcc4 (by joncruz) --- src/mod360-test.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod360-test.h b/src/mod360-test.h index 3f276b24e..55ed59f32 100644 --- a/src/mod360-test.h +++ b/src/mod360-test.h @@ -12,8 +12,8 @@ class Mod360Test : public CxxTest::TestSuite { public: - static double const inf = 1e400; - static double const nan = inf - inf; + static double const inf() { return INFINITY; } + static double nan() { return ((double)INFINITY) - ((double)INFINITY); } void testMod360() { @@ -26,9 +26,9 @@ public: {-359, 1}, {-360, -0}, {-361, 359}, - {inf, 0}, - {-inf, 0}, - {nan, 0}, + {inf(), 0}, + {-inf(), 0}, + {nan(), 0}, {720, 0}, {-721, 359}, {-1000, 80} -- 2.30.2