From 294dd992f84f609e6ffcb58e49efb2ef1908e1a8 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 14 Nov 2023 13:14:42 +0200 Subject: make memory tracking more dumb --- src/debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/debug.c') 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; } -- cgit v1.3