diff --git a/src/vm.c b/src/vm.c index 78fb0c31f..118efb64b 100644 --- a/src/vm.c +++ b/src/vm.c @@ -2123,12 +2123,12 @@ RETRY_TRY_BLOCK: } else { regs[a++] = mrb_ary_new_capa(mrb, 0); - for (idx=0; idx+preptr[pre+idx]; + for (idx=0; idx+preptr[pre+idx]; } while (idx < post) { SET_NIL_VALUE(regs[a+idx]); - i++; + idx++; } } }