From 3651b7fca6abcf3f29f539f84f9772d51cd62e83 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 21 Mar 2018 07:59:42 -0700 Subject: [PATCH] Fix a narrowing warning --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 4c31bd31..454018f3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2275,7 +2275,7 @@ class basic_writer { template struct padded_int_writer { string_view prefix; - wchar_t fill; + char_type fill; std::size_t padding; F f; @@ -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; - auto fill = spec.fill(); + char_type fill = spec.fill(); std::size_t padding = 0; if (spec.align() == ALIGN_NUMERIC) { if (spec.width() > size) {