]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Avoid warning in gcc4.2.2
authorageay <ageay>
Mon, 25 May 2009 06:23:11 +0000 (06:23 +0000)
committerageay <ageay>
Mon, 25 May 2009 06:23:11 +0000 (06:23 +0000)
src/INTERP_KERNEL/Geometric2D/Bounds.cxx

index 8e168ea5a2dae7591a832fb2335b2191c87aa187..9c0e7e557bd6e42cb9fedbe6eaf98a621ab8a622 100644 (file)
@@ -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