Skip to content

Commit

Permalink
codegen.c: fix a argument generation bug in array assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Feb 22, 2022
1 parent 349307b commit f723155
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mrbgems/mruby-compiler/core/codegen.c
Expand Up @@ -1904,8 +1904,12 @@ gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
if (val) {
gen_move(s, top, cursp(), 1);
}
if (n < 14) {
if (n < 15) {
n++;
if (n == 15) {
pop_n(14);
genop_2(s, OP_ARRAY, cursp(), 15);
}
}
else {
pop();
Expand Down

0 comments on commit f723155

Please sign in to comment.