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:
@@ -238,7 +238,7 @@ void PLib_DoubleJacobiPolynomial::ReduceDegree(const Standard_Integer Dimension,
|
||||
}
|
||||
}
|
||||
}
|
||||
while (ErrU > ErrV && ErrV <= EpmsCut || ErrV >= ErrU && ErrU <= EpmsCut);
|
||||
while ((ErrU > ErrV && ErrV <= EpmsCut) || (ErrV >= ErrU && ErrU <= EpmsCut));
|
||||
|
||||
//-------------------------- Recuperation des degres -------------------
|
||||
|
||||
|
@@ -62,11 +62,11 @@ const Standard_Integer UNDEFINED=-999;
|
||||
void PLib_JacobiPolynomial::Points(const Standard_Integer NbGaussPoints,
|
||||
TColStd_Array1OfReal& TabPoints) const
|
||||
{
|
||||
if (NbGaussPoints != NDEG8 && NbGaussPoints != NDEG10 &&
|
||||
if ((NbGaussPoints != NDEG8 && NbGaussPoints != NDEG10 &&
|
||||
NbGaussPoints != NDEG15 && NbGaussPoints != NDEG20 &&
|
||||
NbGaussPoints != NDEG25 && NbGaussPoints != NDEG30 &&
|
||||
NbGaussPoints != NDEG40 && NbGaussPoints != NDEG50 &&
|
||||
NbGaussPoints != NDEG61 ||
|
||||
NbGaussPoints != NDEG61) ||
|
||||
NbGaussPoints <= myDegree)
|
||||
Standard_ConstructionError::Raise("Invalid NbGaussPoints");
|
||||
|
||||
|
Reference in New Issue
Block a user