aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/SplitVector.h2
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);
}