mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data)
This commit is contained in:
parent
73ca9948fe
commit
82bb4f4e89
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user