mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
change some logic in compress_icf_map_g
Change-Id: Ibb59058b6d826e03833c53839613e54c3d2003a8 Signed-off-by: ZhaiMo <zhaimo14@mails.ucas.ac.cn>
This commit is contained in:
parent
e297ecae7a
commit
5b1a519ffc
@ -146,7 +146,7 @@ static struct deflate_icf *compress_icf_map_g(struct isal_zstream *stream,
|
||||
level_buf->icf_buf_next +
|
||||
level_buf->icf_buf_avail_out / sizeof(struct deflate_icf);
|
||||
|
||||
while (matches_next < matches_end - 1 && level_buf->icf_buf_next < icf_buf_end - 1) {
|
||||
while (matches_next + 1 < matches_end && level_buf->icf_buf_next + 1 < icf_buf_end) {
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
code = load_native_u64((uint8_t *) matches_next);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user