fixes MSVC compiler warning bloat (Visual Studio 2017, latest updates)
This commit is contained in:
parent
096c4051b2
commit
48ae0506de
@ -2655,7 +2655,7 @@ void basic_writer<Range>::write_padded(
|
|||||||
if (width <= size)
|
if (width <= size)
|
||||||
return f(reserve(size));
|
return f(reserve(size));
|
||||||
auto &&it = reserve(width);
|
auto &&it = reserve(width);
|
||||||
char_type fill = spec.fill();
|
char_type fill = static_cast<char_type>(spec.fill());
|
||||||
std::size_t padding = width - size;
|
std::size_t padding = width - size;
|
||||||
if (spec.align() == ALIGN_RIGHT) {
|
if (spec.align() == ALIGN_RIGHT) {
|
||||||
it = std::fill_n(it, padding, fill);
|
it = std::fill_n(it, padding, fill);
|
||||||
|
Loading…
Reference in New Issue
Block a user