From da14c88a7452d423d6545ea51f70d4ed55d0fe3b Mon Sep 17 00:00:00 2001 From: frithrah Date: Wed, 18 May 2022 23:23:12 +0100 Subject: [PATCH] Fix Windows max mix-up --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 7872fb4bde5b..82874e4a0432 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1467,7 +1467,7 @@ inline std::chrono::duration get_milliseconds( // microseconds precision. template ::max() / 10)> + (N < 19) && (Num <= max_value() / 10)> struct count_fractional_digits { static constexpr int value = Num % Den == 0 ? N : count_fractional_digits::value;