diff --git a/include/fmt/format.h b/include/fmt/format.h index 454018f3..7402a055 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2295,7 +2295,7 @@ class basic_writer { void write_int(unsigned num_digits, string_view prefix, const Spec &spec, F f) { std::size_t size = prefix.size() + num_digits; - char_type fill = spec.fill(); + char_type fill = static_cast(spec.fill()); std::size_t padding = 0; if (spec.align() == ALIGN_NUMERIC) { if (spec.width() > size) {