summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-10-14 15:26:44 +0200
committerDavid Tardon <dtardon@redhat.com>2014-10-14 17:56:23 +0200
commitad1f796b1dc710a02ade17c95e99d11412f1280a (patch)
tree33aa95ce5d9f210fac5b724f854be927b96e9d1d /tools
parent8afab33d161ddd39a3e6094b5daa08b156ef0421 (diff)
simplify condition
Change-Id: Idceac888c57cc27142877d0cf83dd525ab3f92ca
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 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