Fix a warning.

This commit is contained in:
Victor Zverovich 2013-12-10 08:01:08 -08:00
parent e652144899
commit cc6af50514

View File

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