diff --git a/sakura_core/util/string_ex.cpp b/sakura_core/util/string_ex.cpp index a9830ad4b3..c0b75025f4 100644 --- a/sakura_core/util/string_ex.cpp +++ b/sakura_core/util/string_ex.cpp @@ -1417,7 +1417,8 @@ inline static bool IsLetDig( _In_ const wchar_t ch ) noexcept { - return ch <= 0xFF && ::isalnum( ch ); + // コードポイントがASCII範囲、かつ、isalnumがtrueを返す場合にtrue. + return ch <= 0x7F && ::isalnum( ch ); } /*