COMMON: Fix Rational::operator!=(int)
svn-id: r52535
This commit is contained in:
parent
7248efb178
commit
a960ac66ce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue