2022-07-06 06:58:12 +08:00
|
|
|
diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h
|
2022-08-04 23:09:02 +02:00
|
|
|
index f44df01c..59cc4559 100644
|
2022-07-06 06:58:12 +08:00
|
|
|
--- a/include/fmt/format-inl.h
|
|
|
|
+++ b/include/fmt/format-inl.h
|
2022-08-04 23:09:02 +02:00
|
|
|
@@ -62,8 +62,8 @@ FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
|
2022-07-06 06:58:12 +08:00
|
|
|
error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
|
|
|
|
auto it = buffer_appender<char>(out);
|
|
|
|
if (message.size() <= inline_buffer_size - error_code_size)
|
|
|
|
- format_to(it, FMT_STRING("{}{}"), message, SEP);
|
|
|
|
- format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
|
|
|
|
+ fmt::format_to(it, FMT_STRING("{}{}"), message, SEP);
|
|
|
|
+ fmt::format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code);
|
|
|
|
FMT_ASSERT(out.size() <= inline_buffer_size, "");
|
|
|
|
}
|
|
|
|
|