aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/gzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 758c70a4b..76836951f 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -616,9 +616,11 @@ static void copy_block(char *buf, unsigned len, int header)
616 * (except for the last MIN_MATCH-1 bytes of the input file). 616 * (except for the last MIN_MATCH-1 bytes of the input file).
617 */ 617 */
618#define INSERT_STRING(s, match_head) \ 618#define INSERT_STRING(s, match_head) \
619 (UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]), \ 619{ \
620 prev[(s) & WMASK] = match_head = head[ins_h], \ 620 UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]); \
621 head[ins_h] = (s)) 621 prev[(s) & WMASK] = match_head = head[ins_h]; \
622 head[ins_h] = (s); \
623}
622 624
623/* =========================================================================== 625/* ===========================================================================
624 * Initialize the "longest match" routines for a new file 626 * Initialize the "longest match" routines for a new file
@@ -898,9 +900,7 @@ static ulg deflate(void)
898 * match is not better, output the previous match: 900 * match is not better, output the previous match:
899 */ 901 */
900 if (prev_length >= MIN_MATCH && match_length <= prev_length) { 902 if (prev_length >= MIN_MATCH && match_length <= prev_length) {
901
902 check_match(strstart - 1, prev_match, prev_length); 903 check_match(strstart - 1, prev_match, prev_length);
903
904 flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH); 904 flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH);
905 905
906 /* Insert in hash table all strings up to the end of the match. 906 /* Insert in hash table all strings up to the end of the match.