diff --git a/ConflictSet.cpp b/ConflictSet.cpp index be05a46..155c27d 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1078,7 +1078,7 @@ void freeAndMakeCapacityAtLeast(Node *&self, int capacity, void maybeDecreaseCapacity(Node *&self, NodeAllocators *allocators, ConflictSet::Impl *impl) { const int maxCapacity = - (self->numChildren + int(self->entryPresent)) * self->partialKeyLen; + (self->numChildren + int(self->entryPresent)) * (self->partialKeyLen + 1); if (self->getCapacity() <= maxCapacity) { return; }