mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 13:18:19 +08:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -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