Kaydet (Commit) ad1f796b authored tarafından David Tardon's avatar David Tardon

simplify condition

Change-Id: Idceac888c57cc27142877d0cf83dd525ab3f92ca
üst 8afab33d
...@@ -116,7 +116,7 @@ static int impl_NumberOfBits( unsigned long nNum ) ...@@ -116,7 +116,7 @@ static int impl_NumberOfBits( unsigned long nNum )
*/ */
void rational_ReduceInaccurate(boost::rational<long>& rRational, unsigned nSignificantBits) void rational_ReduceInaccurate(boost::rational<long>& rRational, unsigned nSignificantBits)
{ {
if ( !rRational.numerator() || !rRational.denominator() ) if ( !rRational )
return; return;
// Count with unsigned longs only // Count with unsigned longs only
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment