mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix a warning.
This commit is contained in:
parent
e652144899
commit
cc6af50514
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user