Skip to content

Commit b5fbede

Browse files
committed
Merge branch 'develop' of https://github.com/plugdata-team/plugdata into develop
2 parents 230fb6a + 7e7472a commit b5fbede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Utility/Containers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ class SmallArrayImpl : public SmallArrayTemplateBase<T> {
808808
template<typename U>
809809
void add_array(U const& array)
810810
{
811-
this->reserve(this->capacity() + array.size());
811+
this->reserve(std::max<size_t>(this->capacity(), array.size()));
812812
for (auto const& elt : array)
813813
this->add(elt);
814814
}

0 commit comments

Comments
 (0)