diff --git a/include/date/date.h b/include/date/date.h index db88e8d..77a71b1 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -1154,7 +1154,7 @@ private: static const std::intmax_t d1 = R1::den / gcd_d1_d2; static const std::intmax_t n2 = R2::num / gcd_n1_n2; static const std::intmax_t d2 = R2::den / gcd_d1_d2; - static const std::intmax_t max = INTMAX_MAX; + static const std::intmax_t max = std::numeric_limits::max(); template struct mul // overflow == false