From a2c668fcaafd92afddb3837bdd36573006c4a69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20W=C3=BChrer?= Date: Wed, 5 Aug 2020 16:39:54 +0200 Subject: [PATCH] include/fmt/format.h: explicit cast to std::size_t for parameter to buffer.resize() in order to get rid of warning 'implicit conversion changes signedness:' in clang-8 --- 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 b52da26f..a0e35f4b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1593,7 +1593,7 @@ template struct int_writer { format_decimal(digits, abs_value, num_digits); basic_memory_buffer buffer; size += prefix_size; - buffer.resize(size); + buffer.resize(to_unsigned(size)); basic_string_view s(&sep, sep_size); // Index of a decimal digit with the least significant digit having index 0. int digit_index = 0;