From 48ae0506de166a2915257f01bb135cebf3f907ce Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Wed, 11 Apr 2018 01:46:11 +0200 Subject: [PATCH] fixes MSVC compiler warning bloat (Visual Studio 2017, latest updates) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index ca303fdd..daed3277 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2655,7 +2655,7 @@ void basic_writer::write_padded( if (width <= size) return f(reserve(size)); auto &&it = reserve(width); - char_type fill = spec.fill(); + char_type fill = static_cast(spec.fill()); std::size_t padding = width - size; if (spec.align() == ALIGN_RIGHT) { it = std::fill_n(it, padding, fill);