From d5c78e3656cbc7410f333bfa80e2929947e6d0e5 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 8 Mar 2005 07:36:56 +0000 Subject: compiler compatibility and bug fixes --- tests/eyal1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/eyal1.c') diff --git a/tests/eyal1.c b/tests/eyal1.c index 2f846e8..31226b0 100644 --- a/tests/eyal1.c +++ b/tests/eyal1.c @@ -124,7 +124,7 @@ waste_time (int n) int i; double f, g, h, s; - s = 0; + s = 0.0; /* * Useless work. @@ -134,7 +134,7 @@ waste_time (int n) f = rand (); g = rand (); h = rand (); - s += 2 * f * g / (h != 0 ? (h * h) : 1); + s += 2.0 * f * g / (h != 0.0 ? (h * h) : 1.0); } return s; } -- cgit v1.2.3