fixes MSVC compiler warning bloat (Visual Studio 2017, latest updates)

This commit is contained in:
Christian Parpart 2018-04-11 01:46:11 +02:00 committed by Victor Zverovich
parent 096c4051b2
commit 48ae0506de

View File

@ -2655,7 +2655,7 @@ void basic_writer<Range>::write_padded(
if (width <= size)
return f(reserve(size));
auto &&it = reserve(width);
char_type fill = spec.fill();
char_type fill = static_cast<char_type>(spec.fill());
std::size_t padding = width - size;
if (spec.align() == ALIGN_RIGHT) {
it = std::fill_n(it, padding, fill);