summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/bitsets/prime.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/bitsets/prime.c')
-rw-r--r--misc/examples/bitsets/prime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/bitsets/prime.c b/misc/examples/bitsets/prime.c
index 8216e332..7e5a2b3f 100644
--- a/misc/examples/bitsets/prime.c
+++ b/misc/examples/bitsets/prime.c
@@ -35,7 +35,7 @@ int main(void)
llong np = cbits_count(&primes);
t = clock() - t;
- printf("Number of primes: %lld, time: %f\n\n", np, (float)t / (float)CLOCKS_PER_SEC);
+ printf("Number of primes: %lld, time: %f\n\n", np, (double)t/CLOCKS_PER_SEC);
puts("Show all the primes in the range [2, 1000):");
printf("2");