mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix another warning
This commit is contained in:
parent
b31680990e
commit
2d624218bf
@ -3041,6 +3041,7 @@ class format_int {
|
||||
std::string str() const { return std::string(str_, size()); }
|
||||
};
|
||||
|
||||
// DEPRECATED!
|
||||
// Formats a decimal integer value writing into buffer and returns
|
||||
// a pointer to the end of the formatted string. This function doesn't
|
||||
// write a terminating null character.
|
||||
@ -3063,7 +3064,8 @@ inline void format_decimal(char *&buffer, T value) {
|
||||
return;
|
||||
}
|
||||
unsigned num_digits = internal::count_digits(abs_value);
|
||||
internal::format_decimal<char>(buffer, abs_value, num_digits);
|
||||
internal::format_decimal<char>(
|
||||
internal::make_checked(buffer, num_digits), abs_value, num_digits);
|
||||
buffer += num_digits;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user