Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data)

This commit is contained in:
Ivan Shynkarenka 2017-04-10 23:07:17 +03:00 committed by Victor Zverovich
parent 73ca9948fe
commit 82bb4f4e89

View File

@ -38,7 +38,7 @@ class FormatBuf : public std::basic_streambuf<Char> {
int_type overflow(int_type ch = traits_type::eof()) FMT_OVERRIDE { int_type overflow(int_type ch = traits_type::eof()) FMT_OVERRIDE {
if (!traits_type::eq_int_type(ch, traits_type::eof())) if (!traits_type::eq_int_type(ch, traits_type::eof()))
buffer_.push_back(ch); buffer_.push_back(static_cast<Char>(ch));
return ch; return ch;
} }