aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.c b/types.c
index 04c87225..a55395be 100644
--- a/types.c
+++ b/types.c
@@ -211,6 +211,7 @@ bool has_heap_memory(type_t *t)
case TableType: return true;
case SetType: return true;
case PointerType: return true;
+ case IntType: return (Match(t, IntType)->bits == 0);
case StructType: {
for (arg_t *field = Match(t, StructType)->fields; field; field = field->next) {
if (has_heap_memory(field->type))