summaryrefslogtreecommitdiff
path: root/tests/eyal1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-03-08 07:36:56 +0000
committerrpj <rpj>2005-03-08 07:36:56 +0000
commitd5c78e3656cbc7410f333bfa80e2929947e6d0e5 (patch)
tree9d47c7f9dc5022564a7c34ec1db8cca4e4d6d802 /tests/eyal1.c
parent6df0e45cf47b5eaee00f21a5862e8f0c5107a4e2 (diff)
compiler compatibility and bug fixes
Diffstat (limited to 'tests/eyal1.c')
-rw-r--r--tests/eyal1.c4
1 files changed, 2 insertions, 2 deletions
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;
}