Skip to content

Commit

Permalink
include/fmt/format.h: explicit cast to std::size_t for parameter to b…
Browse files Browse the repository at this point in the history
…uffer.resize() in order to get rid of warning 'implicit conversion changes signedness:' in clang-8
  • Loading branch information
martinwuehrer committed Aug 5, 2020
1 parent ea76933 commit a953da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
format_decimal(digits, abs_value, num_digits);
basic_memory_buffer<Char> buffer;
size += prefix_size;
buffer.resize(size);
buffer.resize(static_cast<std::size_t>(size));
basic_string_view<Char> s(&sep, sep_size);
// Index of a decimal digit with the least significant digit having index 0.
int digit_index = 0;
Expand Down

0 comments on commit a953da9

Please sign in to comment.