diff --git a/include/fmt/format.h b/include/fmt/format.h index 68035faf..94e0594e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1576,7 +1576,7 @@ template auto find_escape(const Char* begin, const Char* end) -> find_escape_result { for (; begin != end; ++begin) { - auto cp = static_cast>(*begin); + uint32_t cp = static_cast>(*begin); if (sizeof(Char) == 1 && cp >= 0x80) continue; if (needs_escape(cp)) return {begin, begin + 1, cp}; }