mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
This commit is contained in:
@@ -1725,7 +1725,7 @@ gb_internal bool is_type_u8_ptr(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t == nullptr) { return false; }
|
||||
if (t->kind == Type_Pointer) {
|
||||
return is_type_u8(t->Slice.elem);
|
||||
return is_type_u8(t->Pointer.elem);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -1766,7 +1766,7 @@ gb_internal bool is_type_u16_ptr(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t == nullptr) { return false; }
|
||||
if (t->kind == Type_Pointer) {
|
||||
return is_type_u16(t->Slice.elem);
|
||||
return is_type_u16(t->Pointer.elem);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user