summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2015-02-19 17:05:38 -0800
committerScott Graham <scottmg@chromium.org>2015-02-19 17:05:38 -0800
commitac99773493eb399106da99d08bbf46580e4fe80b (patch)
tree86ba58f87dc442da47fa34854fc299f255223196 /tools
parentbf8411efa86436245319bc00da2207e39585a328 (diff)
downloadyasm-ac99773493eb399106da99d08bbf46580e4fe80b.tar.gz
Avoid shadowing warning when building with VS2015
Diffstat (limited to 'tools')
-rw-r--r--tools/re2c/code.c6
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);