summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:23:34 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:23:34 +0000
commit638a9b6df7b9ebe8fd543c90a5d531dcfc25887c (patch)
tree4156071a981049da8871036712e4f0cd3605f01c
parenta835ee13e3f5a095467e645bd1ddea5ee208599e (diff)
Do not loop if cuckoo is looping
-rw-r--r--src/htsinthash.c2
1 files changed, 1 insertions, 1 deletions
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;
}