diff --git a/format.cc b/format.cc index b29be007..b273dbd2 100644 --- a/format.cc +++ b/format.cc @@ -396,7 +396,7 @@ inline const typename fmt::BasicFormatter::Arg template void fmt::BasicFormatter::CheckSign(const Char *&s, const Arg &arg) { - char sign = *s; + char sign = static_cast(*s); if (arg.type > LAST_NUMERIC_TYPE) { ReportError(s, Format("format specifier '{}' requires numeric argument") << sign);