From: inikep Date: Tue, 9 Feb 2016 22:26:30 +0000 (+0100) Subject: fix for ZSTD_HcGetAllMatches_generic X-Git-Tag: v0.5.1^2~3^2~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F125%2Fhead;p=thirdparty%2Fzstd.git fix for ZSTD_HcGetAllMatches_generic --- diff --git a/lib/zstd_opt.c b/lib/zstd_opt.c index bd7abfc71..8a9b1e2b1 100644 --- a/lib/zstd_opt.c +++ b/lib/zstd_opt.c @@ -364,7 +364,7 @@ U32 ZSTD_HcGetAllMatches_generic ( while ((matchIndex>lowLimit) && (nbAttempts)) { size_t currentMl=0; - U32 back = 0; + int back = 0; nbAttempts--; if ((!extDict) || matchIndex >= dictLimit) { match = base + matchIndex;