mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -505,7 +505,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
|
||||
Status = aClassifier.State();
|
||||
}
|
||||
|
||||
if (!RecadreOnPeriodic || !IsUPer && !IsVPer)
|
||||
if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
|
||||
return Status;
|
||||
if (Status == TopAbs_IN || Status == TopAbs_ON)
|
||||
return Status;
|
||||
@@ -635,7 +635,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
|
||||
Status = aClassifier.State();
|
||||
}
|
||||
|
||||
if (!RecadreOnPeriodic || !IsUPer && !IsVPer)
|
||||
if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
|
||||
return Status;
|
||||
if (Status == TopAbs_IN || Status == TopAbs_ON)
|
||||
return Status;
|
||||
|
Reference in New Issue
Block a user