codegen.c: fix a argument generation bug in array assignment.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-02-22 11:06:20 +09:00
parent 349307ba88
commit f72315575f
+5 -1
View File
@@ -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();