From 0876e39c4ffdff2330c566c67b9bdfd94b85596d Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 28 Sep 2018 01:27:37 +0300 Subject: [PATCH] pad3 small optimization --- include/spdlog/details/fmt_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index 743b844a..1518b2c0 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -75,7 +75,7 @@ inline void pad3(int n, fmt::basic_memory_buffer &dest) if (n > 99) // 100-999 { - append_int(n / 100, dest); + dest.push_back(static_cast('0' + n / 100)); pad2(n % 100, dest); return; }