From a960ac66cea3ff1a9ea4b7acd02e4cd30ce20594 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 4 Sep 2010 23:45:23 +0000 Subject: COMMON: Fix Rational::operator!=(int) svn-id: r52535 --- common/rational.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3