diff --git a/fmt/ostream.h b/fmt/ostream.h index f529e241..f3cd747b 100644 --- a/fmt/ostream.h +++ b/fmt/ostream.h @@ -38,7 +38,7 @@ class FormatBuf : public std::basic_streambuf { int_type overflow(int_type ch = traits_type::eof()) FMT_OVERRIDE { if (!traits_type::eq_int_type(ch, traits_type::eof())) - buffer_.push_back(ch); + buffer_.push_back(static_cast(ch)); return ch; }