diff options
Diffstat (limited to 'src/bignum.h')
-rw-r--r-- | src/bignum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bignum.h b/src/bignum.h index f5d545f07e..135eade679 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -115,9 +115,9 @@ public: { unsigned long n = BN_get_word(this); if (!BN_is_negative(this)) - return (n > INT_MAX ? INT_MAX : n); + return (n > std::numeric_limits<int>::max() ? std::numeric_limits<int>::max() : n); else - return (n > INT_MAX ? INT_MIN : -(int)n); + return (n > std::numeric_limits<int>::max() ? std::numeric_limits<int>::min() : -(int)n); } void setint64(int64 n) |