Browse code

Compatibility fix with std < C99.

Micah Snyder authored on 2019/02/14 11:12:29
Showing 1 changed files
... ...
@@ -347,8 +347,9 @@ int main(int argc, char *argv[])
347 347
     } else if (optget(opts, "printsrc")->enabled) {
348 348
         print_src(opts->filename[0]);
349 349
     } else if (optget(opts, "printbcir")->enabled) {
350
+        unsigned i;
350 351
         cli_bytetype_describe(bc);
351
-        for (unsigned i = 0; i < bc->num_func; ++i) {
352
+        for (i = 0; i < bc->num_func; ++i) {
352 353
             printf("########################################################################\n"
353 354
                    "####################### Function id %3u ################################\n"
354 355
                    "########################################################################\n", i);