Correct missing adjustment of hash entry.

This commit is contained in:
Con Kolivas 2012-03-11 01:33:54 +11:00
parent 0e593f7681
commit ba2ebae392

1
rzip.c
View file

@ -385,6 +385,7 @@ static void insert_hash(struct rzip_state *st, tag t, i64 offset)
victim_h = h;
if (++round == st->level->max_chain_len) {
h = victim_h;
he = &st->hash_table[h];
st->hash_count--;
victim_round++;
if (victim_round == st->level->max_chain_len)