From 638a9b6df7b9ebe8fd543c90a5d531dcfc25887c Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Thu, 27 Jun 2013 21:23:34 +0000 Subject: Do not loop if cuckoo is looping --- src/htsinthash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/htsinthash.c') diff --git a/src/htsinthash.c b/src/htsinthash.c index b45fed7..0bd0f42 100644 --- a/src/htsinthash.c +++ b/src/htsinthash.c @@ -557,7 +557,7 @@ static int inthash_write_value_(inthash hashtable, const char *name, /* we are looping (back to same hash) */ /* TODO FIXME: we should actually check the positions */ - if (cuckoo_hash == initial_cuckoo_hash && 0) { + if (cuckoo_hash == initial_cuckoo_hash) { /* emergency stash */ break; } -- cgit v1.2.3