diff options
Diffstat (limited to 'src/dynamic-array.hpp')
| -rw-r--r-- | src/dynamic-array.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynamic-array.hpp b/src/dynamic-array.hpp index 900a684..c08f038 100644 --- a/src/dynamic-array.hpp +++ b/src/dynamic-array.hpp @@ -194,10 +194,10 @@ template <typename T> inline void DynArray<T>::Remove(int64_t index, int64_t cou this->elementCount = index; return; } - T *tmp = pk_new<T>(moveCount, this->bkt); + T *tmp = pk_new_arr<T>(moveCount, this->bkt); memcpy(tmp, this->ptr + (sizeof(T) * (index + count)), sizeof(T) * moveCount); memcpy(this->ptr + (sizeof(T) * index), tmp, sizeof(T) * moveCount); - pk_delete<T>(tmp, moveCount, this->bkt); + pk_delete_arr<T>(tmp, moveCount, this->bkt); this->elementCount -= count; } |
