Plus a single style change to match the other deflate algorithms.
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
return need_more;
}
- if (s->lookahead == 0) break; /* flush the current block */
+ if (s->lookahead == 0)
+ break; /* flush the current block */
next_match.match_length = 0;
}
s->prev_length = 2;
s->prev_length -= 2;
do {
if (++s->strstart <= max_insert) {
- hash_head = insert_string(s, s->strstart);
+ insert_string(s, s->strstart);
}
} while (--s->prev_length != 0);
s->match_available = 0;