From c1df42d991cae038f942b1aad9ae3bcb5a2e6982 Mon Sep 17 00:00:00 2001 From: DuchGhast Date: Sun, 15 Feb 2026 14:49:50 +0000 Subject: [PATCH] Fix utf8 validation --- core/unicode/utf8/utf8.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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