Skip to content

Commit

Permalink
Optimise relational operators
Browse files Browse the repository at this point in the history
  • Loading branch information
itstrueitstrueitsrealitsreal committed Jan 28, 2025
1 parent af80174 commit a4e2b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/operators/relational.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool BigInt::operator>(const BigInt& num) const {
*/

bool BigInt::operator<=(const BigInt& num) const {
return !(*this > num);
return !(num < *this);
}


Expand Down

0 comments on commit a4e2b84

Please sign in to comment.