summaryrefslogtreecommitdiff
path: root/tests/eyal1.c
diff options
context:
space:
mode:
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;
}