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; }