fix size_t-1 problem (got warning in ngsxfem)

This commit is contained in:
Joachim Schoeberl 2024-12-01 09:34:52 +01:00
parent a4c6655fa7
commit ad5c50eef5

View File

@ -959,7 +959,7 @@ namespace ngcore
NETGEN_INLINE void RemoveElement (size_t i)
{
NETGEN_CHECK_RANGE(i, BASE, BASE+size);
for(size_t j = i; j < this->size-1; j++)
for(size_t j = i; j+1 < this->size; j++)
this->data[j] = this->data[j+1];
this->size--;
}