diff options
author | Matthew Hoops | 2010-09-04 23:45:23 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-09-04 23:45:23 +0000 |
commit | a960ac66cea3ff1a9ea4b7acd02e4cd30ce20594 (patch) | |
tree | 1f845963abd7dd8314fa108ae12fcdd457615def | |
parent | 7248efb178cdb33c107cc0ff183eb74c79236a59 (diff) | |
download | scummvm-rg350-a960ac66cea3ff1a9ea4b7acd02e4cd30ce20594.tar.gz scummvm-rg350-a960ac66cea3ff1a9ea4b7acd02e4cd30ce20594.tar.bz2 scummvm-rg350-a960ac66cea3ff1a9ea4b7acd02e4cd30ce20594.zip |
COMMON: Fix Rational::operator!=(int)
svn-id: r52535
-rw-r--r-- | common/rational.cpp | 2 |
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 { |