From: W. Felix Handte Date: Wed, 8 Sep 2021 20:41:43 +0000 (-0400) Subject: Search One Last Position X-Git-Tag: v1.5.1~1^2~77^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cdfad538c24e8fd108e1c46101f4e7ec645663c;p=thirdparty%2Fzstd.git Search One Last Position --- diff --git a/lib/compress/zstd_double_fast.c b/lib/compress/zstd_double_fast.c index 4ac44894b..a85d68f01 100644 --- a/lib/compress/zstd_double_fast.c +++ b/lib/compress/zstd_double_fast.c @@ -111,7 +111,7 @@ _start: nextStep = ip + kStepIncr; ip1 = ip + step; - if (ip1 >= ilimit) { + if (ip1 > ilimit) { goto _cleanup; } @@ -173,7 +173,7 @@ _start: #if defined(__aarch64__) PREFETCH_L1(ip+256); #endif - } while (ip1 < ilimit); + } while (ip1 <= ilimit); _cleanup: /* save reps for next block */