diff --git a/format.cc b/format.cc index 536d79d2..9a88b7e9 100644 --- a/format.cc +++ b/format.cc @@ -173,7 +173,7 @@ void Formatter::FormatInt(T value, const FormatSpec &spec) { p[count--] = '0' + (n % 10); n /= 10; } - *p = '0' + n; + *p = static_cast('0' + n); break; } case 'x': case 'X': {