Clean up logic

This commit is contained in:
gingerBill
2021-11-05 17:32:17 +00:00
parent 26e3daf5ad
commit 0c9bb9d920
2 changed files with 51 additions and 32 deletions

View File

@@ -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);
}