Permalink
Browse files

Argument order of __case_eqq was wrong; fix #3567

  • Loading branch information...
matz committed Apr 1, 2017
1 parent 1e87dfd commit e22f37a1669a6c14ce8fe99c868d553917fbfa19
Showing with 2 additions and 3 deletions.
  1. +2 −3 mrbgems/mruby-compiler/core/codegen.c
@@ -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 {

0 comments on commit e22f37a

Please sign in to comment.