mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -629,7 +629,7 @@ IntTools_FClass2d::IntTools_FClass2d()
|
||||
Status = aClassifier.State();
|
||||
}
|
||||
|
||||
if (!RecadreOnPeriodic || !IsUPer && !IsVPer)
|
||||
if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
|
||||
return Status;
|
||||
|
||||
if (Status == TopAbs_IN || Status == TopAbs_ON)
|
||||
@@ -762,7 +762,7 @@ IntTools_FClass2d::IntTools_FClass2d()
|
||||
Status = aClassifier.State();
|
||||
}
|
||||
|
||||
if (!RecadreOnPeriodic || !IsUPer && !IsVPer)
|
||||
if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
|
||||
return Status;
|
||||
if (Status == TopAbs_IN || Status == TopAbs_ON)
|
||||
return Status;
|
||||
|
@@ -241,7 +241,7 @@ Standard_Integer IntTools_MarkedRangeSet::GetIndex(const Standard_Real theValue,
|
||||
{
|
||||
Standard_Integer anIndex = 0;
|
||||
|
||||
if(UseLower && (theValue < myRangeSetStorer(1)) ||
|
||||
if((UseLower && (theValue < myRangeSetStorer(1))) ||
|
||||
(!UseLower && (theValue <= myRangeSetStorer(1))))
|
||||
anIndex = 0;
|
||||
else {
|
||||
|
Reference in New Issue
Block a user