Commit 6f460de02d

Andrew Kelley <superjoe30@gmail.com>
2015-11-26 00:57:15
parser: force ast printer to be correct
1 parent 311fd67
Changed files (1)
src/parser.cpp
@@ -167,7 +167,7 @@ void ast_print(AstNode *node, int indent) {
                 ast_print(child, indent + 2);
             }
             break;
-        default:
+        case NodeTypeDirective:
             fprintf(stderr, "%s\n", node_type_str(node->type));
             break;
     }