diff options
author | David Tardon <dtardon@redhat.com> | 2014-10-14 15:26:44 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-10-14 17:56:23 +0200 |
commit | ad1f796b1dc710a02ade17c95e99d11412f1280a (patch) | |
tree | 33aa95ce5d9f210fac5b724f854be927b96e9d1d /tools | |
parent | just check if the fraction is < 0 (diff) | |
download | core-ad1f796b1dc710a02ade17c95e99d11412f1280a.tar.gz core-ad1f796b1dc710a02ade17c95e99d11412f1280a.zip |
simplify condition
Change-Id: Idceac888c57cc27142877d0cf83dd525ab3f92ca
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/rational.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/generic/rational.cxx b/tools/source/generic/rational.cxx index fd1fbea35014..73b9f4ec6a9b 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.numerator() || !rRational.denominator() ) + if ( !rRational ) return; // Count with unsigned longs only |