diff options
Diffstat (limited to 'src/dynamic-array.hpp')
| -rw-r--r-- | src/dynamic-array.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamic-array.hpp b/src/dynamic-array.hpp index 307983d..d35e5e2 100644 --- a/src/dynamic-array.hpp +++ b/src/dynamic-array.hpp @@ -208,7 +208,7 @@ template <typename T> inline void DynArray<T>::Resize(int64_t count) { int64_t beforeCount = this->elementCount; if IS_DESTRUCTIBLE(T) { if (beforeCount > count) { - for (long i = count; i > beforeCount; --i) { + for (int64_t i = beforeCount; i > count; --i) { reinterpret_cast<T *>(this->ptr + (i * sizeof(T)))->~T(); } } |
