mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-09 13:10:17 +00:00
wasm build fix
This commit is contained in:
parent
8271d0f8bd
commit
0c58878188
@ -290,7 +290,7 @@ namespace pkpy
|
|||||||
const auto size = other.size();
|
const auto size = other.size();
|
||||||
const auto capacity = other.capacity();
|
const auto capacity = other.capacity();
|
||||||
m_begin = reinterpret_cast<T*>(other.is_small() ? m_buffer : std::malloc(sizeof(T) * capacity));
|
m_begin = reinterpret_cast<T*>(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_end = m_begin + size;
|
||||||
m_max = m_begin + capacity;
|
m_max = m_begin + capacity;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user