消除UTF8_iterator编译警告

This commit is contained in:
2026-02-03 19:41:24 +08:00
parent 45e18cc773
commit 27cf09cad0

View File

@@ -58,7 +58,7 @@ namespace Fig
switch (len) switch (len)
{ {
case 1: case 1:
code_point = char_data_[0]; code_point = static_cast<char32_t>(char_data_[0]);
break; break;
case 2: case 2:
code_point = ((char_data_[0] & 0x1F) << 6) | (char_data_[1] & 0x3F); code_point = ((char_data_[0] & 0x1F) << 6) | (char_data_[1] & 0x3F);