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

0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

Code is corrected to avoid copying uninitialized element of the array
This commit is contained in:
abv 2018-06-12 22:18:34 +03:00 committed by bugmaster
parent 56cc44e0f5
commit a820bd4f13

View File

@ -901,11 +901,11 @@ Standard_Boolean IntPatch_InterferencePolyhedron::TangentZoneValue
if (nob<0) break;
}
if (nob>=0) {
while (nob<nbNoInserted) {
nbNoInserted--;
while (nob < nbNoInserted) {
piToInsert[nob]=piToInsert[nob+1];
nob++;
}
nbNoInserted--;
nob=nbNoInserted-1;
}
}