From d56c9889c43964ddc3d328d9ec5e498ee198524f Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Mon, 10 Apr 2017 23:07:17 +0300 Subject: [PATCH] Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data) --- fmt/ostream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/ostream.h b/fmt/ostream.h index f529e24146b1..f3cd747b252c 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; }