From 96ffe23f72e2d24fa8a25564be6d5dce62cd5c38 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 21 Oct 2019 22:22:50 -0400 Subject: [PATCH] Replace INTMAX_MAX with numeric_limits --- include/date/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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