aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index d16aab2..3be9d21 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -217,6 +217,11 @@ static void _type_str(FILE *fp, struct type *type)
return;
switch (type->k) {
+ case TYPE_VOID: {
+ fprintf(fp, "void");
+ break;
+ }
+
case TYPE_PTR:
fputc('*', fp);
_type_str(fp, ptr_base(type));