From ad1f796b1dc710a02ade17c95e99d11412f1280a Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 14 Oct 2014 15:26:44 +0200 Subject: simplify condition Change-Id: Idceac888c57cc27142877d0cf83dd525ab3f92ca --- tools/source/generic/rational.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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& rRational, unsigned nSignificantBits) { - if ( !rRational.numerator() || !rRational.denominator() ) + if ( !rRational ) return; // Count with unsigned longs only -- cgit v1.2.3