From eb034a05894213d3eacf90793cc5bb7c77236b00 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 30 Jun 2014 17:40:53 -0700 Subject: [PATCH] Suppress warnings. --- format.cc | 4 ++-- format.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/format.cc b/format.cc index 79e3e626..125893fb 100644 --- a/format.cc +++ b/format.cc @@ -325,7 +325,7 @@ void fmt::internal::FormatWinErrorMessage( reinterpret_cast(system_message.ptr()), 0, 0)) { UTF16ToUTF8 utf8_message; if (!utf8_message.Convert(system_message.c_str())) { - out << message << ": " << c_str(utf8_message); + out << message << ": " << utf8_message; return; } } @@ -755,7 +755,7 @@ void fmt::internal::PrintfParser::Format( ++s; const Arg &arg = HandleArgIndex(UINT_MAX, error); if (arg.type <= Arg::LAST_INTEGER_TYPE) - spec.precision_ = GetIntValue(arg); + spec.precision_ = static_cast(GetIntValue(arg)); // TODO: check for overflow else if (!error) error = "precision is not integer"; } diff --git a/format.h b/format.h index 01d78e2e..1a641406 100644 --- a/format.h +++ b/format.h @@ -1512,7 +1512,7 @@ typename fmt::BasicWriter::CharPtr unsigned fill_size = width - number_size; if (align != ALIGN_LEFT) { CharPtr p = GrowBuffer(fill_size); - std::fill(p, p + fill_size, spec.fill()); + std::fill(p, p + fill_size, static_cast(spec.fill())); } CharPtr result = PrepareBufferForInt(num_digits, subspec, prefix, prefix_size); if (align == ALIGN_LEFT) {