0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
[occt.git] / src / IntPatch / IntPatch_ImpPrmIntersection.cxx
index bd39936..56cb016 100755 (executable)
@@ -253,8 +253,8 @@ void ComputeTangency (const IntPatch_TheSOnBounds& solrst,
              LocTrans = TopAbs_EXTERNAL; // et pourquoi pas INTERNAL
            }
            else {
-             if ((test > 0.)&& arcorien == TopAbs_FORWARD ||
-                 (test < 0.)&& arcorien == TopAbs_REVERSED){
+             if (((test > 0.)&& arcorien == TopAbs_FORWARD) ||
+                 ((test < 0.)&& arcorien == TopAbs_REVERSED)){
                LocTrans = TopAbs_FORWARD;
              }
              else {
@@ -292,8 +292,8 @@ void ComputeTangency (const IntPatch_TheSOnBounds& solrst,
                      LocTrans = TopAbs_EXTERNAL; // et pourquoi pas INTERNAL
                    }
                    else {
-                     if ((test > 0.)&& arcorien == TopAbs_FORWARD ||
-                         (test < 0.)&& arcorien == TopAbs_REVERSED){
+                     if (((test > 0.)&& arcorien == TopAbs_FORWARD) ||
+                         ((test < 0.)&& arcorien == TopAbs_REVERSED)){
                        LocTrans = TopAbs_FORWARD;
                      }
                      else {