mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +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:
parent
56cc44e0f5
commit
a820bd4f13
@ -901,11 +901,11 @@ Standard_Boolean IntPatch_InterferencePolyhedron::TangentZoneValue
|
|||||||
if (nob<0) break;
|
if (nob<0) break;
|
||||||
}
|
}
|
||||||
if (nob>=0) {
|
if (nob>=0) {
|
||||||
while (nob<nbNoInserted) {
|
nbNoInserted--;
|
||||||
|
while (nob < nbNoInserted) {
|
||||||
piToInsert[nob]=piToInsert[nob+1];
|
piToInsert[nob]=piToInsert[nob+1];
|
||||||
nob++;
|
nob++;
|
||||||
}
|
}
|
||||||
nbNoInserted--;
|
|
||||||
nob=nbNoInserted-1;
|
nob=nbNoInserted-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user