Skip to content

Commit

Permalink
Removed TBList grow limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruxo committed Jul 5, 2016
1 parent 16c32c9 commit 6f59f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tb/tb_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bool TBListBackend::GrowIfNeeded()
{
int capacity = GetCapacity();
if (GetNumItems() == capacity)
return Reserve(CLAMP(4, capacity * 2, 1024));
return Reserve(capacity == 0 ? 4 : capacity * 2);
return true;
}

Expand Down

0 comments on commit 6f59f2b

Please sign in to comment.