summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--misc/examples/prime.c2
-rw-r--r--misc/examples/random.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/prime.c b/misc/examples/prime.c
index c3db707d..e7b3d993 100644
--- a/misc/examples/prime.c
+++ b/misc/examples/prime.c
@@ -32,7 +32,7 @@ int main(void)
llong n = 100000000;
printf("Computing prime numbers up to %lld\n", n);
- clock_t t = clock();
+ clock_t t1 = clock();
cbits primes = sieveOfEratosthenes(n + 1);
llong np = cbits_count(&primes);
diff --git a/misc/examples/random.c b/misc/examples/random.c
index 63c5a306..a36b2389 100644
--- a/misc/examples/random.c
+++ b/misc/examples/random.c
@@ -4,7 +4,7 @@
int main(void)
{
- const size_t N = 10000000;
+ const int N = 10000000;
const uint64_t seed = (uint64_t)time(NULL), range = 1000000;
crand_t rng = crand_init(seed);