Commit 4ba19821 authored by gabime's avatar gabime

Fixed compilation for vs2013

parent 1e385851
...@@ -46,7 +46,7 @@ inline void append_int(T n, fmt::basic_memory_buffer<char, Buffer_Size> &dest) ...@@ -46,7 +46,7 @@ inline void append_int(T n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
template<typename T> template<typename T>
inline unsigned count_digits(T n) 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<count_type>(n)); return fmt::internal::count_digits(static_cast<count_type>(n));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment