]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed the comments generated by make_t43_gray_code_tables.c
authorSteve Underwood <steveu@x100e.coppice.org>
Wed, 18 Sep 2013 13:55:16 +0000 (21:55 +0800)
committerSteve Underwood <steveu@x100e.coppice.org>
Wed, 18 Sep 2013 13:55:16 +0000 (21:55 +0800)
libs/spandsp/src/make_t43_gray_code_tables.c

index c44adc27bb8f9d47b7b691760c35fe431189863b..041b907d7916956e64856e3319c5b212bb17a354 100644 (file)
@@ -41,12 +41,13 @@ int main(int argc, char *argv[])
     int j;
     int gray;
     int new_gray;
-    int restore = 0;
+    int restore;
 
     printf("static const int16_t gray_code[4096] =\n{\n");
     for (i = 0;  i < 4096;  i++)
     {
         gray = i & 0x800;
+        restore = i;
         for (j = 10;  j >= 0;  j--)
         {
             if (((i >> (j + 1)) & 1) ^ ((i >> j) & 1))