diff options
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r-- | src/SplitVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index 76f9a8f36..af4e890e3 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -43,7 +43,7 @@ protected: /// reallocating if more space needed. void RoomFor(int insertionLength) { if (gapLength <= insertionLength) { - if (growSize * 6 < size) + while (growSize < size / 6) growSize *= 2; ReAllocate(size + insertionLength + growSize); } |