mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 14:40:35 +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_INLINE void RemoveElement (size_t i)
|
||||||
{
|
{
|
||||||
NETGEN_CHECK_RANGE(i, BASE, BASE+size);
|
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->data[j] = this->data[j+1];
|
||||||
this->size--;
|
this->size--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user