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);