From 92d27b0aa3d542e66703304d76508eeb5e5fe651 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 4 Apr 2020 20:11:17 +0300 Subject: [PATCH] Minor update to fmt_helper --- 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 a528bceb..1e17c4d3 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -31,7 +31,7 @@ inline void append_int(T n, memory_buf_t &dest) } template -inline unsigned count_digits(T n) +inline unsigned int count_digits(T n) { using count_type = typename std::conditional<(sizeof(T) > sizeof(uint32_t)), uint64_t, uint32_t>::type; return static_cast(fmt::internal::count_digits(static_cast(n)));