From: ageay Date: Mon, 25 May 2009 06:23:11 +0000 (+0000) Subject: Avoid warning in gcc4.2.2 X-Git-Tag: V5_1_main_FINAL~389 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74d472ce00d12707c3be4e69cca800982a53924b;p=tools%2Fmedcoupling.git Avoid warning in gcc4.2.2 --- diff --git a/src/INTERP_KERNEL/Geometric2D/Bounds.cxx b/src/INTERP_KERNEL/Geometric2D/Bounds.cxx index 8e168ea5a..9c0e7e557 100644 --- a/src/INTERP_KERNEL/Geometric2D/Bounds.cxx +++ b/src/INTERP_KERNEL/Geometric2D/Bounds.cxx @@ -168,7 +168,7 @@ Position Bounds::nearlyWhere(double x, double y) const bool thinY=Node::areDoubleEquals(_y_min,_y_max); if(!thinX) { - if(Node::areDoubleEquals(x,_x_min) || Node::areDoubleEquals(x,_x_max) && (y<_y_max+QUADRATIC_PLANAR::_precision) && (y>_y_min-QUADRATIC_PLANAR::_precision)) + if((Node::areDoubleEquals(x,_x_min) || Node::areDoubleEquals(x,_x_max)) && ((y<_y_max+QUADRATIC_PLANAR::_precision) && (y>_y_min-QUADRATIC_PLANAR::_precision))) return ON_BOUNDARY_POS; } else @@ -176,7 +176,7 @@ Position Bounds::nearlyWhere(double x, double y) const return OUT; if(!thinY) { - if(Node::areDoubleEquals(y,_y_min) || Node::areDoubleEquals(y,_y_max) && (x<_x_max+QUADRATIC_PLANAR::_precision) && (x>_x_min-QUADRATIC_PLANAR::_precision)) + if((Node::areDoubleEquals(y,_y_min) || Node::areDoubleEquals(y,_y_max)) && ((x<_x_max+QUADRATIC_PLANAR::_precision) && (x>_x_min-QUADRATIC_PLANAR::_precision))) return ON_BOUNDARY_POS; } else