getbits: calculates the proper value but showed a different one
authorMarkus Bröker <mbroeker@volpe.spectre.org>
Wed, 18 Aug 2010 16:15:18 +0200
changeset 141 0b5befeb361e
parent 140 05d42a3737a4
child 142 d6bce20b455e
getbits: calculates the proper value but showed a different one
getbits.c
--- a/getbits.c
+++ b/getbits.c
@@ -29,7 +29,7 @@
 int main (void)
 {
     unsigned int i;
-    char *s = strdup (getbits (255));
+    char *s = strdup (getbits (0));
 
     for (i = 240; i < 255; i++)
         printf ("%s %s %s %s (%d)\n", s, s, s, getbits (i), i);