From cc6af505145746c41997fae00b0101c400cd685a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 10 Dec 2013 08:01:08 -0800 Subject: [PATCH] Fix a warning. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);