[Scummvm-cvs-logs] SF.net SVN: scummvm:[52535] scummvm/trunk/common/rational.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun Sep 5 01:45:24 CEST 2010
Revision: 52535
http://scummvm.svn.sourceforge.net/scummvm/?rev=52535&view=rev
Author: mthreepwood
Date: 2010-09-04 23:45:23 +0000 (Sat, 04 Sep 2010)
Log Message:
-----------
COMMON: Fix Rational::operator!=(int)
Modified Paths:
--------------
scummvm/trunk/common/rational.cpp
Modified: scummvm/trunk/common/rational.cpp
===================================================================
--- scummvm/trunk/common/rational.cpp 2010-09-04 22:26:12 UTC (rev 52534)
+++ scummvm/trunk/common/rational.cpp 2010-09-04 23:45:23 UTC (rev 52535)
@@ -207,7 +207,7 @@
}
bool Rational::operator!=(int right) const {
- return (_denom == 1) && (_num != right);
+ return (_denom != 1) || (_num != right);
}
bool Rational::operator>(int right) const {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list