X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxpress_compress.c;h=776de7cdc4c33032f82a75d7d4333f041df36217;hp=ba7a9af7272ecb3510d6a6ab04e7fec0319dd3cd;hb=c9be4d389724d00cec9f5e444efb965a449d2ba8;hpb=5ec910e4e9126a37eed1ff199d55a1952c76e0f7 diff --git a/src/xpress_compress.c b/src/xpress_compress.c index ba7a9af7..776de7cd 100644 --- a/src/xpress_compress.c +++ b/src/xpress_compress.c @@ -907,7 +907,7 @@ xpress_find_matches(struct xpress_compressor * restrict c, const u8 * const in_begin = in; const u8 *in_next = in_begin; struct lz_match *cache_ptr = c->match_cache; - u32 next_hash = 0; + u32 next_hashes[2] = {}; u32 max_len = in_nbytes; u32 nice_len = min(max_len, c->nice_match_length); @@ -935,7 +935,7 @@ xpress_find_matches(struct xpress_compressor * restrict c, max_len, nice_len, c->max_search_depth, - &next_hash, + next_hashes, &best_len, cache_ptr); cache_ptr->length = cache_ptr - matches; @@ -965,7 +965,7 @@ xpress_find_matches(struct xpress_compressor * restrict c, max_len, nice_len, c->max_search_depth, - &next_hash); + next_hashes); cache_ptr->length = 0; cache_ptr->offset = *in_next++; cache_ptr++;