From 0c9bb9d920e0af4e6fe8299390c542f01ef77177 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 5 Nov 2021 17:32:17 +0000 Subject: Clean up logic --- src/ptr_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ptr_set.cpp') 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 *s) { template gb_inline void ptr_set_grow(PtrSet *s) { - isize new_count = s->hashes.count*2; + isize new_count = gb_max(s->hashes.count<<1, 16); ptr_set_rehash(s, new_count); } -- cgit v1.2.3