mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-10 13:10:07 +00:00
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)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user