aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_set.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-05 17:32:17 +0000
committergingerBill <bill@gingerbill.org>2021-11-05 17:32:17 +0000
commit0c9bb9d920e0af4e6fe8299390c542f01ef77177 (patch)
treec2ea4baa3e1892f8f1682bb9b120e2dd7427718e /src/ptr_set.cpp
parent26e3daf5adc6c59f7bf7c621abc4640ba7a8bda0 (diff)
Clean up logic
Diffstat (limited to 'src/ptr_set.cpp')
-rw-r--r--src/ptr_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp
index 4ab3d3259..37815c057 100644
--- a/src/ptr_set.cpp
+++ b/src/ptr_set.cpp
@@ -94,7 +94,7 @@ gb_internal bool ptr_set__full(PtrSet<T> *s) {
template <typename T>
gb_inline void ptr_set_grow(PtrSet<T> *s) {
- isize new_count = s->hashes.count*2;
+ isize new_count = gb_max(s->hashes.count<<1, 16);
ptr_set_rehash(s, new_count);
}