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

This commit is contained in:
Ryan Fleury committed 2025-05-20 14:46:46 -07:00
1 parent 2f5082fb61
commit 206ec346cf
2 files changed
+5 -5

No files matched your search

+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)