From ad5c50eef51b4df993bdb7bd01a8273377c2d7c1 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 1 Dec 2024 09:34:52 +0100 Subject: [PATCH] fix size_t-1 problem (got warning in ngsxfem) --- libsrc/core/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/array.hpp b/libsrc/core/array.hpp index bb03166a..51ed0d10 100644 --- a/libsrc/core/array.hpp +++ b/libsrc/core/array.hpp @@ -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--; }