From 147e8ca58076e94cd86430328f6b8b3f844b4439 Mon Sep 17 00:00:00 2001 From: frithrah Date: Thu, 19 May 2022 00:35:26 +0100 Subject: [PATCH] Fix Windows max mix-up (#2903) --- 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 7872fb4b..82874e4a 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;