From 1a9c42ec8057d18a4837cf7be26132013dfb3d4d Mon Sep 17 00:00:00 2001 From: ykiko Date: Thu, 6 Jun 2024 15:11:24 +0800 Subject: [PATCH] Fix small vector. --- include/pocketpy/common/vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/common/vector.hpp b/include/pocketpy/common/vector.hpp index 12600d65..54e5ab48 100644 --- a/include/pocketpy/common/vector.hpp +++ b/include/pocketpy/common/vector.hpp @@ -334,7 +334,7 @@ struct small_vector { small_vector(small_vector&& other) noexcept { if(other.is_small()) { _begin = reinterpret_cast(_buffer); - uninitialized_relocate_n(other._buffer, other.size(), _buffer); + uninitialized_relocate_n((T*)other._buffer, other.size(), (T*)_buffer); _end = _begin + other.size(); _capacity = _begin + N; } else {