remove need for floor at insert

This commit is contained in:
yrutschle committed 2022-04-08 21:10:20 +02:00
1 parent 33d73dd514
commit 97a67500ea
2 files changed
-2

No files matched your search

-2
View File
@@ -149,8 +149,6 @@ int hash_insert(hash* h, hash_item new)
if (h->item_cnt == hash_size) if (h->item_cnt == hash_size)
return -1; return -1;
if (index < h->floor) index = h->floor;
hash_item curr_item = gap_get(hash, index); hash_item curr_item = gap_get(hash, index);
while (curr_item) { while (curr_item) {
if (distance(index, h, curr_item) < distance(index, h, new)) { if (distance(index, h, curr_item) < distance(index, h, new)) {
BIN
View File
Binary file not shown.