Explorar el Código

wasm build fix (#245)

Thanks for your fix.
Vadim Grigoruk hace 2 años
padre
commit
afc0b8c58c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/pocketpy/vector.h

+ 1 - 1
include/pocketpy/vector.h

@@ -290,7 +290,7 @@ namespace pkpy
             const auto size = other.size();
             const auto capacity = other.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_max = m_begin + capacity;
         }