This commit is contained in:
1 parent
48a79a6f8c
commit
b3dfd34f2d
1 file changed
+2
-2
+2
-2
@@ -1725,7 +1725,7 @@ gb_internal bool is_type_u8_ptr(Type *t) {
|
|||||||
t = base_type(t);
|
t = base_type(t);
|
||||||
if (t == nullptr) { return false; }
|
if (t == nullptr) { return false; }
|
||||||
if (t->kind == Type_Pointer) {
|
if (t->kind == Type_Pointer) {
|
||||||
return is_type_u8(t->Slice.elem);
|
return is_type_u8(t->Pointer.elem);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1766,7 +1766,7 @@ gb_internal bool is_type_u16_ptr(Type *t) {
|
|||||||
t = base_type(t);
|
t = base_type(t);
|
||||||
if (t == nullptr) { return false; }
|
if (t == nullptr) { return false; }
|
||||||
if (t->kind == Type_Pointer) {
|
if (t->kind == Type_Pointer) {
|
||||||
return is_type_u16(t->Slice.elem);
|
return is_type_u16(t->Pointer.elem);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user