Fixed a bug in `OP_HASHADD`.

parent a3fb8090
......@@ -2704,9 +2704,8 @@ RETRY_TRY_BLOCK:
int i;
int lim = a+b*2+1;
for (i=a+1; i<lim; i++) {
for (i=a+1; i<lim; i+=2) {
mrb_hash_set(mrb, hash, regs[i], regs[i+1]);
b+=2;
}
mrb_gc_arena_restore(mrb, ai);
NEXT;
......
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