diff --git a/hash.c b/hash.c index 5ad862a..2de8bf4 100644 --- a/hash.c +++ b/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)) { diff --git a/hashtest/htest b/hashtest/htest index eab1b60..e31a427 100755 Binary files a/hashtest/htest and b/hashtest/htest differ