From a2a8f13667cb7bada7817a0edd03405012754fb8 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Sun, 16 Oct 2016 22:27:19 +0200 Subject: [PATCH] Fix gcc's warning/error when building with -Wmisleading-indentation --- include/boost/test/tools/fpc_op.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/test/tools/fpc_op.hpp b/include/boost/test/tools/fpc_op.hpp index da143aa9f3..18364a27b9 100644 --- a/include/boost/test/tools/fpc_op.hpp +++ b/include/boost/test/tools/fpc_op.hpp @@ -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::cmp_direct) || \ fpc_tolerance() == FPT(0) ) \ + { \ return direct_res; \ + } \ \ return compare_fpv( lhs, rhs, (OP*)0 ); \ } \