2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-24 18:32:30 +00:00

Syntactic change silences latest gcc warnings about confusing 'if' statements.

This commit is contained in:
Edward Diener
2016-09-16 18:39:13 -04:00
committed by Raffi Enficiaud
parent 02f9a561bc
commit a4e729b227

View File

@@ -178,16 +178,22 @@ public: \
eval( Lhs const& lhs, Rhs const& rhs ) \
{ \
if( lhs == 0 ) \
{ \
return compare_fpv_near_zero( rhs, (OP*)0 ); \
} \
\
if( rhs == 0 ) \
{ \
return compare_fpv_near_zero( lhs, (OP*)0 ); \
} \
\
bool direct_res = eval_direct( lhs, rhs ); \
\
if( (direct_res && fpctraits<OP>::cmp_direct) || \
fpc_tolerance<FPT>() == FPT(0) ) \
{ \
return direct_res; \
} \
\
return compare_fpv<FPT>( lhs, rhs, (OP*)0 ); \
} \