Fix mixture of inline `int` declaration in `for` statement.

parent 80a7655b
...@@ -110,8 +110,6 @@ static void raise_error(codegen_scope *s, const char *msg); ...@@ -110,8 +110,6 @@ static void raise_error(codegen_scope *s, const char *msg);
static void static void
codegen_error(codegen_scope *s, const char *message) codegen_error(codegen_scope *s, const char *message)
{ {
int i;
if (!s) return; if (!s) return;
while (s->prev) { while (s->prev) {
codegen_scope *tmp = s->prev; codegen_scope *tmp = s->prev;
...@@ -128,7 +126,7 @@ codegen_error(codegen_scope *s, const char *message) ...@@ -128,7 +126,7 @@ codegen_error(codegen_scope *s, const char *message)
mrb_free(s->mrb, s->catch_table); mrb_free(s->mrb, s->catch_table);
if (s->reps) { if (s->reps) {
/* copied from mrb_irep_free() in state.c */ /* copied from mrb_irep_free() in state.c */
for (i=0; i<s->irep->rlen; i++) { for (int i=0; i<s->irep->rlen; i++) {
if (s->reps[i]) if (s->reps[i])
mrb_irep_decref(s->mrb, (mrb_irep*)s->reps[i]); mrb_irep_decref(s->mrb, (mrb_irep*)s->reps[i]);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment