codegen.c: keep stack space for block argument.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-20 14:27:02 +09:00
parent b84bca666f
commit 2b07489372
+1
View File
@@ -1956,6 +1956,7 @@ gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
pop();
genop_2(s, OP_ARYPUSH, cursp(), 1);
}
push(); pop();
s->sp = call;
if (mid == MRB_OPSYM_2(s->mrb, aref) && n == 2) {
genop_1(s, OP_SETIDX, cursp());