summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types.c b/types.c
index 8d70850..e317fab 100644
--- a/types.c
+++ b/types.c
@@ -101,6 +101,8 @@ static bool type_eq(Type *a, Type *b) {
case TYPE_ARR:
if (a->arr.n != b->arr.n) return false;
return type_eq(a->arr.of, b->arr.of);
+ case TYPE_PTR:
+ return type_eq(a->ptr.of, b->ptr.of);
}
assert(0);
return false;