aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-10-11 14:57:45 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-10-11 14:57:45 +0200
commitb3dfd34f2d3ca1431e3e5d8f8157b545afa45b3e (patch)
tree43e8a0243b56d58eb7d91c8b7508650b21a7f10f /src
parent48a79a6f8c4470f3958c0e3405da2de77e0825fb (diff)
#5788
Diffstat (limited to 'src')
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 372c2e991..b4cc67d83 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -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;
}