Commit 652fea45 authored by Ivan Shynkarenka's avatar Ivan Shynkarenka Committed by Victor Zverovich

Visual Studio 2022: fmt/format.h(1526,27): warning C4127: conditional expression is constant #2908

parent 1f9eae7e
...@@ -1523,7 +1523,7 @@ auto find_escape(const Char* begin, const Char* end) ...@@ -1523,7 +1523,7 @@ auto find_escape(const Char* begin, const Char* end)
-> find_escape_result<Char> { -> find_escape_result<Char> {
for (; begin != end; ++begin) { for (; begin != end; ++begin) {
uint32_t cp = static_cast<make_unsigned_char<Char>>(*begin); uint32_t cp = static_cast<make_unsigned_char<Char>>(*begin);
if (sizeof(Char) == 1 && cp >= 0x80) continue; if (const_check(sizeof(Char) == 1) && cp >= 0x80) continue;
if (needs_escape(cp)) return {begin, begin + 1, cp}; if (needs_escape(cp)) return {begin, begin + 1, cp};
} }
return {begin, nullptr, 0}; return {begin, nullptr, 0};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment