Skip to content

Commit

Permalink
fix dump_prefix() with wrong type argument; fix #3128
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 7, 2016
1 parent 0c28c7d commit 41d6ba2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mrbgems/mruby-compiler/core/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -5810,10 +5810,9 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
printf("post mandatory args:\n");
dump_recur(mrb, n->car, offset+2);
}
n = n->cdr;
if (n) {
if (n->cdr) {
dump_prefix(n, offset+1);
printf("blk=&%s\n", mrb_sym2name(mrb, sym(n)));
printf("blk=&%s\n", mrb_sym2name(mrb, sym(n->cdr)));
}
}
dump_prefix(tree, offset+1);
Expand Down

0 comments on commit 41d6ba2

Please sign in to comment.