[qfcc] Fix type_count for type aliases

It was returning type_size by mistake (c&p programming ftw).
This commit is contained in:
Bill Currie 2025-02-16 18:07:11 +09:00
parent 1e58a1b12e
commit 5690fd028d

View file

@ -1995,7 +1995,7 @@ type_count (const type_t *type)
case ty_class:
return 1;
case ty_alias:
return type_size (type->alias.aux_type);
return type_count (type->alias.aux_type);
case ty_algebra:
internal_error (0, "count of algebra type");
case ty_meta_count: