From a24005d5fd74d6cbd60aad9252ce1ba022c7a934 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 21 Mar 2018 08:29:06 -0700 Subject: [PATCH] Fix a narrowing warning --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {