aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c
index f145234..e6e2b60 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -230,8 +230,7 @@ static void _type_str(FILE *fp, struct ast_node *type)
}
case AST_TYPE_PRIMITIVE: {
- struct ast_node *id = AST_PRIMITIVE_TYPE(type).id;
- fprintf(fp, "%s", AST_ID(id).id);
+ fprintf(fp, "%s", primitive_str(AST_PRIMITIVE_TYPE(type).type));
break;
}