mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fix size_t-1 problem (got warning in ngsxfem)
This commit is contained in:
parent
a4c6655fa7
commit
ad5c50eef5
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user