diff --git a/include/operators/relational.hpp b/include/operators/relational.hpp index 460f915..8322d07 100644 --- a/include/operators/relational.hpp +++ b/include/operators/relational.hpp @@ -59,7 +59,7 @@ bool BigInt::operator<(const BigInt& num) const { */ bool BigInt::operator>(const BigInt& num) const { - return !((*this < num) or (*this == num)); + return num < *this; } @@ -69,7 +69,7 @@ bool BigInt::operator>(const BigInt& num) const { */ bool BigInt::operator<=(const BigInt& num) const { - return (*this < num) or (*this == num); + return !(num < *this); }