Commit 82bb4f4e authored by Ivan Shynkarenka's avatar Ivan Shynkarenka Committed by Victor Zverovich

Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int'...

Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data)
parent 73ca9948
...@@ -38,7 +38,7 @@ class FormatBuf : public std::basic_streambuf<Char> { ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment