diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-27 18:12:46 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-27 18:12:46 +0100 |
| commit | f6bbd8a4c2206189c8c77f51b38a421d43d66e76 (patch) | |
| tree | 60320177d2f94e701c3cdf6ab0170deb4bb55726 /src/checker/type.cpp | |
| parent | 006741908b6bc42a621549cf869c2227cdf82f7b (diff) | |
Fix minimal dependency for nested entities
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index a814db218..34a18a6da 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -499,6 +499,7 @@ b32 is_type_u8_slice(Type *t) { return false; } b32 is_type_vector(Type *t) { + t = base_type(t); return t->kind == Type_Vector; } b32 is_type_proc(Type *t) { @@ -507,7 +508,8 @@ b32 is_type_proc(Type *t) { } Type *base_vector_type(Type *t) { if (is_type_vector(t)) { - return base_type(t)->Vector.elem; + t = base_type(t); + return t->Vector.elem; } return t; } |