diff options
author | Peter Johnson <peter@tortall.net> | 2015-11-06 02:38:39 -0800 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2015-11-06 02:38:39 -0800 |
commit | 37330617445f114eea0ffc47406636638187e76c (patch) | |
tree | 242a76fde12798d348b7c82bb978ff5b62df9aef | |
parent | 257df7ec47dd3a2ef58541fed6c6ebceb1072f6d (diff) | |
parent | ac99773493eb399106da99d08bbf46580e4fe80b (diff) | |
download | yasm-37330617445f114eea0ffc47406636638187e76c.tar.gz |
Merge pull request #70 from sgraham/shadowing-warning-vs2015
Avoid shadowing warning when building with VS2015
-rw-r--r-- | tools/re2c/code.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/re2c/code.c b/tools/re2c/code.c index bd54baac..92e24d58 100644 --- a/tools/re2c/code.c +++ b/tools/re2c/code.c @@ -936,12 +936,12 @@ void DFA_emit(DFA *d, FILE *o){ oline++; useLabel(label); } else { - int i; + int j; fputs("\tswitch(YYGETSTATE()) {\n", o); fputs("\t\tcase -1: goto yy0;\n", o); - for (i=0; i<maxFillIndexes; ++i) - fprintf(o, "\t\tcase %u: goto yyFillLabel%u;\n", i, i); + for (j=0; j<maxFillIndexes; ++j) + fprintf(o, "\t\tcase %d: goto yyFillLabel%d;\n", j, j); fputs("\t\tdefault: /* abort() */;\n", o); fputs("\t}\n", o); |