Silence this other warning.

This commit is contained in:
Barry Revzin 2021-12-24 15:54:43 -06:00
parent b0680218be
commit 2b2fa8b825

View File

@ -1576,7 +1576,7 @@ template <typename Char>
auto find_escape(const Char* begin, const Char* end)
-> find_escape_result<Char> {
for (; begin != end; ++begin) {
auto 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 (needs_escape(cp)) return {begin, begin + 1, cp};
}