Skip to content

Commit

Permalink
Fix Visual Studio 2017 new warning (C4244: 'argument': conversion fro…
Browse files Browse the repository at this point in the history
…m 'int' to 'const char', possible loss of data)
  • Loading branch information
chronoxor authored and vitaut committed Apr 15, 2017
1 parent 73ca994 commit 82bb4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FormatBuf : public std::basic_streambuf<Char> {

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<Char>(ch));
return ch;
}

Expand Down

0 comments on commit 82bb4f4

Please sign in to comment.