From afc0b8c58cf25939c330e8fbf3086cb9610eb9e6 Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Mon, 27 May 2024 07:32:07 +0200 Subject: [PATCH] wasm build fix (#245) Thanks for your fix. --- include/pocketpy/vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/vector.h b/include/pocketpy/vector.h index 9e972f97..dc9917c0 100644 --- a/include/pocketpy/vector.h +++ b/include/pocketpy/vector.h @@ -290,7 +290,7 @@ namespace pkpy const auto size = other.size(); const auto capacity = other.capacity(); m_begin = reinterpret_cast(other.is_small() ? m_buffer : std::malloc(sizeof(T) * capacity)); - uninitialized_copy_n(other.begin, size, this->m_begin); + uninitialized_copy_n(other.m_begin, size, this->m_begin); m_end = m_begin + size; m_max = m_begin + capacity; }