aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-07 11:52:49 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-10-07 11:52:49 +0100
commit56f275bc7109b5102e4fc2394584827bdb8fbc59 (patch)
tree87e77953f39f2cb9450d3d490fce32c6d2339f67
parent1a90b06fac6a2e8370b8d74c8f0dfb34e445a436 (diff)
Fix typo
-rw-r--r--core/reflect/types.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reflect/types.odin b/core/reflect/types.odin
index fc983df3b..2e82e29b1 100644
--- a/core/reflect/types.odin
+++ b/core/reflect/types.odin
@@ -293,7 +293,7 @@ is_string16 :: proc(info: ^Type_Info) -> bool {
is_cstring16 :: proc(info: ^Type_Info) -> bool {
if info == nil { return false }
v, ok := type_info_base(info).variant.(Type_Info_String)
- return ok && v.is_cstring && v == .UTF_16
+ return ok && v.is_cstring && v.encoding == .UTF_16
}
// Returns true the base-type is a boolean of any kind, false otherwise.