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;