libluna: Fix Vector::shallow_copy()
This commit is contained in:
parent
d50ea76bdc
commit
8542cf7cbf
@ -212,7 +212,7 @@ template <typename T> class Vector
|
|||||||
{
|
{
|
||||||
Vector<T> other;
|
Vector<T> other;
|
||||||
TRY(other.try_reserve(m_capacity));
|
TRY(other.try_reserve(m_capacity));
|
||||||
memcpy(other.m_data, m_data, m_size);
|
memcpy(other.m_data, m_data, m_size * sizeof(T));
|
||||||
other.m_size = m_size;
|
other.m_size = m_size;
|
||||||
return other;
|
return other;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user