COMMON: Fix Rational::operator!=(int)

svn-id: r52535
This commit is contained in:
Matthew Hoops 2010-09-04 23:45:23 +00:00
parent 7248efb178
commit a960ac66ce

View file

@ -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 {