]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(find_first_one): Fixed c99-style declaration. Reported by Sebastian
authorSebastian Reitenbach <sebastia@l00-bugdead-prods.de>
Wed, 8 Jun 2011 09:14:31 +0000 (11:14 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 8 Jun 2011 09:14:31 +0000 (11:14 +0200)
Reitenbach.

Rev: nettle/examples/eratosthenes.c:1.11

examples/eratosthenes.c

index 293aa0dad534fbf22dca8729e28252623e4e09a8..25759bba03ef5b5a9a44b11f54eee74d5594586d 100644 (file)
@@ -145,10 +145,11 @@ find_first_one (unsigned long x)
       7,
     };
 
+  unsigned i = 0;
+
   /* Isolate least significant bit */
   x &= -x;
 
-  unsigned i = 0;
 #if NEED_HANDLE_LARGE_LONG
 #ifndef SIZEOF_LONG
   /* Can not be tested by the preprocessor. May generate warnings