X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fhc_matchfinder.h;h=dd1cfab9dcde44df3005913e95d636db8411a3c5;hb=e7a3df0a6bf2af6500611f6c464dc36cab3332d8;hp=a5cca95e6a9d18032aad1ae8004ec33650ecd3a1;hpb=917100f2f08773e5b6c7a479a095b499fab848b8;p=wimlib diff --git a/include/wimlib/hc_matchfinder.h b/include/wimlib/hc_matchfinder.h index a5cca95e..dd1cfab9 100644 --- a/include/wimlib/hc_matchfinder.h +++ b/include/wimlib/hc_matchfinder.h @@ -173,7 +173,7 @@ hc_matchfinder_longest_match(struct hc_matchfinder * const restrict mf, pos_t cur_node; /* Insert the current sequence into the appropriate linked list. */ - if (unlikely(max_len < LZ_HASH_REQUIRED_NBYTES)) + if (unlikely(max_len < LOAD_U24_REQUIRED_NBYTES)) goto out; first_3_bytes = load_u24_unaligned(in_next); hash = lz_hash(first_3_bytes, HC_MATCHFINDER_HASH_ORDER); @@ -279,7 +279,7 @@ hc_matchfinder_skip_positions(struct hc_matchfinder * restrict mf, { u32 hash; - if (unlikely(in_next + count >= in_end - LZ_HASH_REQUIRED_NBYTES)) + if (unlikely(in_next + count >= in_end - LZ_HASH3_REQUIRED_NBYTES)) return; do {