From 82bb4f4e8975f073509dbf2ff6c193eb0bdf6252 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 f529e241..f3cd747b 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; }