diff --git a/hash.c b/hash.c index 6e5a809..19adf33 100644 --- a/hash.c +++ b/hash.c @@ -152,7 +152,6 @@ int hash_insert(hash* h, hash_item new) if (index < h->floor) index = h->floor; hash_item curr_item = gap_get(hash, index); - int orig_floor = h->floor; while (curr_item) { if (distance(index, h, curr_item) > distance(index, h, new)) { gap_set(h->data, index, new); diff --git a/hashtest/Makefile b/hashtest/Makefile index 776b159..9cb67c6 100644 --- a/hashtest/Makefile +++ b/hashtest/Makefile @@ -1,5 +1,5 @@ -CFLAGS=-DHASH_TESTING +CFLAGS=-DHASH_TESTING -O2 -Wall OBJ=../hash.o ../gap.o htest.o htest: $(OBJ) diff --git a/hashtest/htest b/hashtest/htest index 4ca0afc..d88ee8f 100755 Binary files a/hashtest/htest and b/hashtest/htest differ