Compare commits
2 Commits
d50ea76bdc
...
f052d8630d
Author | SHA1 | Date | |
---|---|---|---|
f052d8630d | |||
8542cf7cbf |
@ -212,7 +212,7 @@ template <typename T> class Vector
|
||||
{
|
||||
Vector<T> other;
|
||||
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;
|
||||
return other;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ namespace os
|
||||
|
||||
bool is_still_parsing_flags = true;
|
||||
|
||||
Vector<PositionalArgument> positional_args = TRY(m_positional_args.deep_copy());
|
||||
Vector<PositionalArgument> positional_args = TRY(m_positional_args.shallow_copy());
|
||||
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user