diff options
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |