fix 2-byte utf decoding issues, fix utf8 lexing issues

This commit is contained in:
Ryan Fleury
2025-05-20 14:46:46 -07:00
parent 2f5082fb61
commit 206ec346cf
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1517,7 +1517,7 @@ utf8_decode(U8 *str, U64 max){
}break;
case 2:
{
if (2 < max)
if (1 < max)
{
U8 cont_byte = str[1];
if (utf8_class[cont_byte >> 3] == 0)