Commit 2d624218 authored by Victor Zverovich's avatar Victor Zverovich

Fix another warning

parent b3168099
...@@ -3041,6 +3041,7 @@ class format_int { ...@@ -3041,6 +3041,7 @@ class format_int {
std::string str() const { return std::string(str_, size()); } std::string str() const { return std::string(str_, size()); }
}; };
// DEPRECATED!
// Formats a decimal integer value writing into buffer and returns // Formats a decimal integer value writing into buffer and returns
// a pointer to the end of the formatted string. This function doesn't // a pointer to the end of the formatted string. This function doesn't
// write a terminating null character. // write a terminating null character.
...@@ -3063,7 +3064,8 @@ inline void format_decimal(char *&buffer, T value) { ...@@ -3063,7 +3064,8 @@ inline void format_decimal(char *&buffer, T value) {
return; return;
} }
unsigned num_digits = internal::count_digits(abs_value); 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; buffer += num_digits;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment