summaryrefslogtreecommitdiff
path: root/src/support/small_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/small_vector.h')
-rw-r--r--src/support/small_vector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/support/small_vector.h b/src/support/small_vector.h
index e2c865b8f..7c03ae02b 100644
--- a/src/support/small_vector.h
+++ b/src/support/small_vector.h
@@ -116,6 +116,8 @@ public:
usedFixed = std::min(N, newSize);
if (newSize > N) {
flexible.resize(newSize - N);
+ } else {
+ flexible.clear();
}
}