]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Bug fixes.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 24 Oct 2007 20:01:26 +0000 (22:01 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 24 Oct 2007 20:01:26 +0000 (22:01 +0200)
Rev: nettle/examples/eratosthenes.c:1.7

examples/eratosthenes.c

index d8e414dd3b85f2a39b9e089c5396c772555c20a0..fd38ca7de56bdd79bb747d2574eb3d256c515a75 100644 (file)
@@ -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);