X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzx_compress.c;h=36e27dbed6c2ecdda17b4206e3d8a75c0b299ceb;hp=d36f8aaa380ae747723f8e0f475862464af5145b;hb=c9be4d389724d00cec9f5e444efb965a449d2ba8;hpb=5ec910e4e9126a37eed1ff199d55a1952c76e0f7 diff --git a/src/lzx_compress.c b/src/lzx_compress.c index d36f8aaa..36e27dbe 100644 --- a/src/lzx_compress.c +++ b/src/lzx_compress.c @@ -1781,7 +1781,7 @@ lzx_compress_near_optimal(struct lzx_compressor *c, const u8 * const in_end = in_begin + c->in_nbytes; u32 max_len = LZX_MAX_MATCH_LEN; u32 nice_len = min(c->nice_match_length, max_len); - u32 next_hash = 0; + u32 next_hashes[2] = {}; struct lzx_lru_queue queue; CALL_BT_MF(is_16_bit, c, bt_matchfinder_init); @@ -1819,7 +1819,7 @@ lzx_compress_near_optimal(struct lzx_compressor *c, max_len, nice_len, c->max_search_depth, - &next_hash, + next_hashes, &best_len, cache_ptr + 1); in_next++; @@ -1857,7 +1857,7 @@ lzx_compress_near_optimal(struct lzx_compressor *c, max_len, nice_len, c->max_search_depth, - &next_hash); + next_hashes); in_next++; cache_ptr->length = 0; cache_ptr++;