From 4ba19821cecec09b0f1185e11e458f9a722894b5 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 25 Nov 2018 10:54:06 +0200 Subject: [PATCH] Fixed compilation for vs2013 --- 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 afc76b25..ed9df2c5 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -46,7 +46,7 @@ inline void append_int(T n, fmt::basic_memory_buffer &dest) template inline unsigned count_digits(T n) { - using count_type = typename std::conditional<(sizeof(T) > sizeof(std::uint32_t)), std::uint64_t, std::uint32_t>::type; + using count_type = typename std::conditional<(sizeof(T) > sizeof(uint32_t)), uint64_t, uint32_t>::type; return fmt::internal::count_digits(static_cast(n)); }