aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-11-14 13:14:42 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-11-14 13:14:42 +0200
commit294dd992f84f609e6ffcb58e49efb2ef1908e1a8 (patch)
tree23aea55fb647443972765f1eca05d24c0db25ebf /src/debug.c
parentb00da3db7c1d7f1e16b2e0446234dc42d54b8708 (diff)
downloadek-294dd992f84f609e6ffcb58e49efb2ef1908e1a8.tar.gz
ek-294dd992f84f609e6ffcb58e49efb2ef1908e1a8.zip
make memory tracking more dumb
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;
}