diff options
author | Willem Jan Palenstijn | 2010-09-07 09:02:46 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2010-09-07 09:02:46 +0000 |
commit | 8f1143bfdc972d86cf5fbbf85a0084a9d0c71447 (patch) | |
tree | 3c7689e4da4f66f8298000ddf1cccac8e40b561a /common | |
parent | dd0095f1a210aa54f379fe51967def65a0dc5fdf (diff) | |
download | scummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.tar.gz scummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.tar.bz2 scummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.zip |
COMMON: Remove Rational::operator int/double
This prevents accidental implicit rounding
and might also fix compilation on AmigaOS4 (bug #3060981).
svn-id: r52616
Diffstat (limited to 'common')
-rw-r--r-- | common/rational.cpp | 8 | ||||
-rw-r--r-- | common/rational.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/common/rational.cpp b/common/rational.cpp index 38aae94def..999dc7feb8 100644 --- a/common/rational.cpp +++ b/common/rational.cpp @@ -258,14 +258,6 @@ frac_t Rational::toFrac() const { return (_num * FRAC_ONE) / _denom; } -Rational::operator int() const { - return toInt(); -} - -Rational::operator double() const { - return toDouble(); -} - const Rational operator+(int left, const Rational &right) { Rational tmp = right; tmp += left; diff --git a/common/rational.h b/common/rational.h index 5826839ac6..bee09d8ddb 100644 --- a/common/rational.h +++ b/common/rational.h @@ -76,9 +76,6 @@ public: bool operator>=(int right) const; bool operator<=(int right) const; - operator int() const; - operator double() const; - void invert(); Rational getInverse() const; |