From b0680218bede657efeae9629a632b9756c8c9bc1 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 24 Dec 2021 13:24:21 -0600 Subject: [PATCH] Silence this conversion 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 666d62a7..68035faf 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1982,7 +1982,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view s, if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = code_point_index(s, to_unsigned(specs.precision)); bool is_debug = specs.type == presentation_type::debug; - auto width = 0; + size_t width = 0; if (specs.width != 0) { if (is_debug) { width = write_escaped_string(counting_iterator{}, s).count();