fixed SEGV in mrb_parser_dump(NODE_COLON3)

parent 68ba3862
...@@ -5984,9 +5984,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset) ...@@ -5984,9 +5984,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break; break;
case NODE_COLON3: case NODE_COLON3:
printf("NODE_COLON3:\n"); printf("NODE_COLON3: ::%s\n", mrb_sym2name(mrb, sym(tree)));
dump_prefix(tree, offset+1);
printf("::%s\n", mrb_sym2name(mrb, sym(tree)));
break; break;
case NODE_ARRAY: case NODE_ARRAY:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment