diff --git a/common/rational.cpp b/common/rational.cpp index 6c5d44af84a..163044f349b 100644 --- a/common/rational.cpp +++ b/common/rational.cpp @@ -207,7 +207,7 @@ bool Rational::operator==(int right) const { } bool Rational::operator!=(int right) const { - return (_denom == 1) && (_num != right); + return (_denom != 1) || (_num != right); } bool Rational::operator>(int right) const {