Skip to content
Permalink
Browse files
fix dump_prefix() with wrong type argument; fix #3128
  • Loading branch information
matz committed Mar 7, 2016
1 parent 0c28c7d commit 41d6ba23b512147497589efbe87a445256d5b213
Showing 1 changed file with 2 additions and 3 deletions.
@@ -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);

0 comments on commit 41d6ba2

Please sign in to comment.