mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
remove need for floor at insert
This commit is contained in:
1 parent
33d73dd514
commit
97a67500ea
2 files changed
-2
No files matched your search
@@ -149,8 +149,6 @@ int hash_insert(hash* h, hash_item new)
|
||||
if (h->item_cnt == hash_size)
|
||||
return -1;
|
||||
|
||||
if (index < h->floor) index = h->floor;
|
||||
|
||||
hash_item curr_item = gap_get(hash, index);
|
||||
while (curr_item) {
|
||||
if (distance(index, h, curr_item) < distance(index, h, new)) {
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user