mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
OCC22324 Mistakes with parenthesis position in abs calls
This commit is contained in:
@@ -127,13 +127,14 @@ static void Hunt(const TColStd_Array1OfReal& Arr,
|
||||
// when co-ordinate component definitly equals a knot only.
|
||||
Standard_Real Tol=Precision::PConfusion()/10;
|
||||
Standard_Integer i=1;
|
||||
while((i<=Arr.Upper())&&(Abs(Coord-Arr(i))>Tol)){
|
||||
while((i <= Arr.Upper()) && (Abs(Coord - Arr(i)) > Tol)){
|
||||
i++;}
|
||||
|
||||
if(Abs(Coord-Arr(i))<Tol)
|
||||
if(Abs(Coord - Arr(i)) < Tol)
|
||||
Iloc = i;
|
||||
else
|
||||
if(Abs(Coord-Arr(i)>Tol)) Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");
|
||||
if(Abs(Coord - Arr(i)) > Tol)
|
||||
Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user