Commit 3a942554 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2608 from mrbrdo/fix-typo

fix typo (i->idx)
parents b4cc962c aff2be4b
...@@ -2123,12 +2123,12 @@ RETRY_TRY_BLOCK: ...@@ -2123,12 +2123,12 @@ RETRY_TRY_BLOCK:
} }
else { else {
regs[a++] = mrb_ary_new_capa(mrb, 0); regs[a++] = mrb_ary_new_capa(mrb, 0);
for (idx=0; idx+pre<len; i++) { for (idx=0; idx+pre<len; idx++) {
regs[a+i] = ary->ptr[pre+idx]; regs[a+idx] = ary->ptr[pre+idx];
} }
while (idx < post) { while (idx < post) {
SET_NIL_VALUE(regs[a+idx]); SET_NIL_VALUE(regs[a+idx]);
i++; idx++;
} }
} }
} }
......
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