aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 62b8b6c..24885c2 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -199,7 +199,7 @@ void dump_func(Node *node, int depth)
printf("[[%lld]]", node->func.args[i].offset);
}
printf(")");
- if (node->func.return_type->type != TYPE_NONE) {
+ if (node->func.return_type->type != TYPE_VOID) {
// FIXME: Print return type properly
printf(" -> %s", type_to_str(node->func.return_type));
}