fix dump_prefix() with wrong type argument; fix #3128

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-03-07 10:59:25 +09:00
parent 0c28c7d754
commit 41d6ba23b5
+2 -3
View File
@@ -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);