Replace INTMAX_MAX with numeric_limits
This commit is contained in:
1 parent
48f1455cd2
commit
96ffe23f72
1 file changed
+1
-1
+1
-1
@@ -1154,7 +1154,7 @@ private:
|
|||||||
static const std::intmax_t d1 = R1::den / gcd_d1_d2;
|
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 n2 = R2::num / gcd_n1_n2;
|
||||||
static const std::intmax_t d2 = R2::den / gcd_d1_d2;
|
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<std::intmax_t>::max();
|
||||||
|
|
||||||
template <std::intmax_t Xp, std::intmax_t Yp, bool overflow>
|
template <std::intmax_t Xp, std::intmax_t Yp, bool overflow>
|
||||||
struct mul // overflow == false
|
struct mul // overflow == false
|
||||||
|
|||||||
Reference in new issue
Block a user