Skip to content

Commit

Permalink
codegen.c: need to pack argument when n==13 too.
Browse files Browse the repository at this point in the history
Because we have extra 2 arguments coming (kw and rhs).
  • Loading branch information
matz committed Apr 9, 2022
1 parent 55b5261 commit c8c083c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-compiler/core/codegen.c
Expand Up @@ -1905,7 +1905,7 @@ gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
}
}
if (tree->cdr->car) { /* keyword arguments */
if (n == 14) {
if (n == 13 || n == 14) {
pop_n(n);
genop_2(s, OP_ARRAY, cursp(), n);
push();
Expand Down

0 comments on commit c8c083c

Please sign in to comment.