fix: suppress wchar_t '>= 0' tautological comparison warning on arm64

On Windows arm64, wchar_t is unsigned so 'wc >= 0' is always true
and GCC/Clang emit -Wtype-limits. Drop the redundant lower bound
check — only the upper bound 'wc <= 0x7f' is needed.
This commit is contained in:
Kelsi 2026-03-10 21:34:54 -07:00
parent b4469b1577
commit 7c8bda0907

View file

@ -64,7 +64,7 @@ std::string narrowWString(const wchar_t* msg) {
std::string out;
for (const wchar_t* p = msg; *p; ++p) {
const wchar_t wc = *p;
if (wc >= 0 && wc <= 0x7f) {
if (wc <= 0x7f) {
out.push_back(static_cast<char>(wc));
} else {
out.push_back('?');