summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--set.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set.c b/set.c
index e69cef0..9af4202 100644
--- a/set.c
+++ b/set.c
@@ -96,6 +96,7 @@ static void rehash_set(set_t* set) {
}
static size_t fetch_set_idx_rehashing(set_t* set, void* key) {
+ /* TODO(bug): we need to check non-tombstones all the way through before accepting tombstones */
size_t idx = fetch_set_idx(set, key, true);
if ((double) ++set->size / set->__num_buckets > set->load_limit
|| idx >= set->__num_buckets) {