aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/rational.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rational.cpp b/common/rational.cpp
index 6c5d44af84..163044f349 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 {