diff options
| author | gingerBill <bill@gingerbill.org> | 2024-01-26 12:47:39 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-01-26 12:47:39 +0000 |
| commit | 5406acc8fa9aded68e47b25c3464cb7eee713c8c (patch) | |
| tree | 7fd8ac64496ac619b7214c385ac436c57438e399 /src/types.cpp | |
| parent | 9cfd4a953e2a7d19237891993b643b2d1477f8b3 (diff) | |
Fix `type_ptr_set_update`
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 574e628c5..2f39d5caa 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -825,11 +825,13 @@ gb_internal void type_path_pop(TypePath *tp) { #define FAILURE_SIZE 0 #define FAILURE_ALIGNMENT 0 +gb_internal bool type_ptr_set_exists(PtrSet<Type *> *s, Type *t); + gb_internal bool type_ptr_set_update(PtrSet<Type *> *s, Type *t) { if (t == nullptr) { return true; } - if (ptr_set_exists(s, t)) { + if (type_ptr_set_exists(s, t)) { return true; } ptr_set_add(s, t); |