Compare commits

..

No commits in common. "f052d8630d79c514dd610b975f8e17226c709fa3" and "d50ea76bdc4a7ae81cd6e81edd9273b5c6bf95d6" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -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 * sizeof(T)); memcpy(other.m_data, m_data, m_size);
other.m_size = m_size; other.m_size = m_size;
return other; return other;
} }

View File

@ -118,7 +118,7 @@ namespace os
bool is_still_parsing_flags = true; bool is_still_parsing_flags = true;
Vector<PositionalArgument> positional_args = TRY(m_positional_args.shallow_copy()); Vector<PositionalArgument> positional_args = TRY(m_positional_args.deep_copy());
for (int i = 1; i < argc; i++) for (int i = 1; i < argc; i++)
{ {