From 74d472ce00d12707c3be4e69cca800982a53924b Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 25 May 2009 06:23:11 +0000 Subject: [PATCH] Avoid warning in gcc4.2.2 --- src/INTERP_KERNEL/Geometric2D/Bounds.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2