summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-10-15 21:19:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-10-15 21:19:03 +0900
commit3a94255495cbecfe7b11b8cb743a99da37ca56f5 (patch)
tree78fa86aa33fd640338130d244a2aafb98afe7990 /src
parentb4cc962c3a8bf13a108f2ba4fb07beb962ddede1 (diff)
parentaff2be4b40f870070c3a50bc74018a26fcb3e3d9 (diff)
downloadmruby-3a94255495cbecfe7b11b8cb743a99da37ca56f5.tar.gz
mruby-3a94255495cbecfe7b11b8cb743a99da37ca56f5.zip
Merge pull request #2608 from mrbrdo/fix-typo
fix typo (i->idx)
Diffstat (limited to 'src')
-rw-r--r--src/vm.c6
1 files changed, 3 insertions, 3 deletions
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+pre<len; i++) {
- regs[a+i] = ary->ptr[pre+idx];
+ for (idx=0; idx+pre<len; idx++) {
+ regs[a+idx] = ary->ptr[pre+idx];
}
while (idx < post) {
SET_NIL_VALUE(regs[a+idx]);
- i++;
+ idx++;
}
}
}