aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-16 11:24:43 +0000
committerGitHub <noreply@github.com>2026-02-16 11:24:43 +0000
commitbf1ea780d8b899cbfd9c42af3ce602761e7b2a5f (patch)
tree1ba240a6984883f28273b64c369568b757b8ea8f
parent64a09737765369037bc7fc21a81ba0bd12b2c8a1 (diff)
parentc1df42d991cae038f942b1aad9ae3bcb5a2e6982 (diff)
Merge pull request #6285 from DuchGhast/utf8-validation-fix
Fix utf8 validation
-rw-r--r--core/unicode/utf8/utf8.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/unicode/utf8/utf8.odin b/core/unicode/utf8/utf8.odin
index 78cefa8b4..0b48a0cd8 100644
--- a/core/unicode/utf8/utf8.odin
+++ b/core/unicode/utf8/utf8.odin
@@ -314,7 +314,7 @@ valid_string :: proc "contextless" (s: string) -> bool {
return false
} else if size == 3 {
// Okay
- } else if d := s[i+3]; b < 0x80 || 0xbf < d {
+ } else if d := s[i+3]; d < 0x80 || 0xbf < d {
return false
}
i += size