Skip to content
Snippets Groups Projects
Commit d7de8cfb authored by Niels Möller's avatar Niels Möller
Browse files

Bug fixes.

Rev: nettle/examples/eratosthenes.c:1.7
parent 9f7da3eb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment