Skip to content

Commit

Permalink
Visual Studio 2022: fmt/format.h(1526,27): warning C4127: conditional…
Browse files Browse the repository at this point in the history
… expression is constant #2908
  • Loading branch information
Ivan Shynkarenka authored and vitaut committed May 27, 2022
1 parent 1f9eae7 commit 652fea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ auto find_escape(const Char* begin, const Char* end)
-> find_escape_result<Char> {
for (; begin != end; ++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};
}
return {begin, nullptr, 0};
Expand Down

0 comments on commit 652fea4

Please sign in to comment.