mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix type_ptr_set_update
This commit is contained in:
+3
-1
@@ -825,11 +825,13 @@ gb_internal void type_path_pop(TypePath *tp) {
|
|||||||
#define FAILURE_SIZE 0
|
#define FAILURE_SIZE 0
|
||||||
#define FAILURE_ALIGNMENT 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) {
|
gb_internal bool type_ptr_set_update(PtrSet<Type *> *s, Type *t) {
|
||||||
if (t == nullptr) {
|
if (t == nullptr) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ptr_set_exists(s, t)) {
|
if (type_ptr_set_exists(s, t)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ptr_set_add(s, t);
|
ptr_set_add(s, t);
|
||||||
|
|||||||
Reference in New Issue
Block a user