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;