diff --git a/examples/eratosthenes.c b/examples/eratosthenes.c index d8e414dd3b85f2a39b9e089c5396c772555c20a0..fd38ca7de56bdd79bb747d2574eb3d256c515a75 100644 --- a/examples/eratosthenes.c +++ b/examples/eratosthenes.c @@ -141,7 +141,7 @@ find_first_one (unsigned long x) if (x >= 0x10000) { x >>= 16; - i =+ 16; + i += 16; } if (x >= 0x100) { @@ -272,7 +272,7 @@ main (int argc, char **argv) /* No more marking, just output the remaining primes. */ for (; bit < block_size ; - bit = vector_find_next (vector, bit + 1, size)) + bit = vector_find_next (vector, bit + 1, block_size)) OUTPUT(3 + 2 * bit);