From 7c8bda0907631fe7a08e48a421defa4e472f187e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 10 Mar 2026 21:34:54 -0700 Subject: [PATCH] fix: suppress wchar_t '>= 0' tautological comparison warning on arm64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/rendering/amd_fsr3_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/amd_fsr3_runtime.cpp b/src/rendering/amd_fsr3_runtime.cpp index e7606fb6..26fc5ce1 100644 --- a/src/rendering/amd_fsr3_runtime.cpp +++ b/src/rendering/amd_fsr3_runtime.cpp @@ -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(wc)); } else { out.push_back('?');