Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf7448b

Browse files
committed
Correct debug printing code
1 parent 3702284 commit cf7448b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ dumptree(g, n)
320320
else {
321321
label l;
322322
l.lb_type = TYPE(n);
323-
l.lb_str = TYPE(str);
323+
l.lb_str = STR(n);
324324
printf("%s", labelrepr(&l));
325325
if (ISNONTERMINAL(TYPE(n))) {
326326
printf("(");

0 commit comments

Comments
 (0)