Skip to content

Commit c8c083c

Browse files
committed
codegen.c: need to pack argument when n==13 too.
Because we have extra 2 arguments coming (kw and rhs).
1 parent 55b5261 commit c8c083c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mrbgems/mruby-compiler/core/codegen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
19051905
}
19061906
}
19071907
if (tree->cdr->car) { /* keyword arguments */
1908-
if (n == 14) {
1908+
if (n == 13 || n == 14) {
19091909
pop_n(n);
19101910
genop_2(s, OP_ARRAY, cursp(), n);
19111911
push();

0 commit comments

Comments
 (0)