mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Argument order of __case_eqq was wrong; fix #3567
This commit is contained in:
@@ -1304,10 +1304,9 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
pos2 = 0;
|
||||
do {
|
||||
if (n4 && n4->car && (intptr_t)n4->car->car == NODE_SPLAT) {
|
||||
genop(s, MKOP_AB(OP_MOVE, cursp(), exc));
|
||||
push();
|
||||
codegen(s, n4->car, VAL);
|
||||
pop_n(2);
|
||||
genop(s, MKOP_AB(OP_MOVE, cursp(), exc));
|
||||
pop();
|
||||
genop(s, MKOP_ABC(OP_SEND, cursp(), new_msym(s, mrb_intern_lit(s->mrb, "__case_eqq")), 1));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user