forked from fmtlib/fmt
Fix Windows max mix-up (#2903)
This commit is contained in:
@ -1467,7 +1467,7 @@ inline std::chrono::duration<Rep, std::milli> get_milliseconds(
|
|||||||
// microseconds precision.
|
// microseconds precision.
|
||||||
template <long long Num, long long Den, int N = 0,
|
template <long long Num, long long Den, int N = 0,
|
||||||
bool Enabled =
|
bool Enabled =
|
||||||
(N < 19) && (Num <= std::numeric_limits<long long>::max() / 10)>
|
(N < 19) && (Num <= max_value<long long>() / 10)>
|
||||||
struct count_fractional_digits {
|
struct count_fractional_digits {
|
||||||
static constexpr int value =
|
static constexpr int value =
|
||||||
Num % Den == 0 ? N : count_fractional_digits<Num * 10, Den, N + 1>::value;
|
Num % Den == 0 ? N : count_fractional_digits<Num * 10, Den, N + 1>::value;
|
||||||
|
Reference in New Issue
Block a user