summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-23 17:25:02 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-23 18:34:36 +0200
commitb66aad4084760f3f43a9db580d637b43d5e38e24 (patch)
tree63cc44aa31a2f43df17a5be95d6127927e4e16d8 /tools
parentd1d24172c51c20d7901c7446f84a99138fd29164 (diff)
Fraction: Revert "simplify condition"
This reverts commit ad1f796b1dc710a02ade17c95e99d11412f1280a.
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/rational.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/generic/rational.cxx b/tools/source/generic/rational.cxx
index 7edf4134952d..1fa7ca0dba14 100644
--- a/tools/source/generic/rational.cxx
+++ b/tools/source/generic/rational.cxx
@@ -116,7 +116,7 @@ static int impl_NumberOfBits( unsigned long nNum )
*/
void rational_ReduceInaccurate(boost::rational<long>& rRational, unsigned nSignificantBits)
{
- if ( !rRational )
+ if ( !rRational.numerator() || !rRational.denominator() )
return;
// Count with unsigned longs only