Merge pull request #3 from bitwitch/master

fix: stackvector expand
This commit is contained in:
Noel Berry 2020-12-05 13:35:20 -08:00 committed by GitHub
commit bb68a25b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ namespace Blah
int count = m_count; int count = m_count;
for (int i = 0; i < amount; i++) for (int i = 0; i < amount; i++)
new (data() + count + i) T(item); new (data() + count + i) T();
m_count += amount; m_count += amount;
return &data()[count]; return &data()[count];