mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
remove need for floor at insert
This commit is contained in:
parent
33d73dd514
commit
97a67500ea
2
hash.c
2
hash.c
@ -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)) {
|
||||
|
BIN
hashtest/htest
BIN
hashtest/htest
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user