summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
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