From: Niels Möller Date: Wed, 24 Oct 2007 20:01:26 +0000 (+0200) Subject: Bug fixes. X-Git-Tag: nettle_2.0_release_20090608~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7de8cfbe3973dd6ed630c48d563a23ab589bfd2;p=thirdparty%2Fnettle.git Bug fixes. Rev: nettle/examples/eratosthenes.c:1.7 --- diff --git a/examples/eratosthenes.c b/examples/eratosthenes.c index d8e414dd..fd38ca7d 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);