1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0028960: Coding Rules - eliminate GCC compiler warning -Wfor-loop-analysis

This commit is contained in:
kgv 2017-07-31 15:13:28 +03:00 committed by bugmaster
parent 08f8a1854d
commit c727abe055

View File

@ -576,13 +576,12 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C)
//-- if(Nbp < MinNb) { cout<<"\n*"; } else { cout<<"\n."; }
while(Nbp < MinNb) {
//-- cout<<" \nGCPnts TangentialDeflection : Ajout de Points ("<<Nbp<<" "<<minNbPnts<<" )"<<endl;
for(i=2; i<=Nbp; i++) {
for (i = 2; i <= Nbp; i += 2) {
MiddleU = (parameters.Value(i-1)+parameters.Value(i))*0.5;
D0 (C, MiddleU, MiddlePoint);
parameters.InsertBefore(i,MiddleU);
points.InsertBefore(i,MiddlePoint);
Nbp++;
i++;
}
}
//Additional check for intervals