From 2d624218bf9b760bf8280e7bfb85b78247c110cc Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 5 Dec 2018 10:19:53 -0800 Subject: [PATCH] Fix another warning --- include/fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index a6a2457c..3f4fe90f 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -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(buffer, abs_value, num_digits); + internal::format_decimal( + internal::make_checked(buffer, num_digits), abs_value, num_digits); buffer += num_digits; }