From: inikep Date: Sun, 6 Mar 2016 22:21:52 +0000 (+0100) Subject: added missing "case 3:" in ZSTD_BtGetAllMatches X-Git-Tag: v0.6.0^2~17^2~78^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89c9e1a847625aa143b79735a8f5a4633e95925a;p=thirdparty%2Fzstd.git added missing "case 3:" in ZSTD_BtGetAllMatches --- diff --git a/lib/zstd_internal.h b/lib/zstd_internal.h index b06097a21..462161bd7 100644 --- a/lib/zstd_internal.h +++ b/lib/zstd_internal.h @@ -105,7 +105,7 @@ static const size_t ZSTD_frameHeaderSize_min = 5; #define OffFSELog 9 #define MaxSeq MAX(MaxLL, MaxML) -#define LONGNBSEQ 0xFF00 +#define LONGNBSEQ 0x7F00 #define FSE_ENCODING_RAW 0 #define FSE_ENCODING_RLE 1 diff --git a/lib/zstd_opt.h b/lib/zstd_opt.h index 780c5d415..c6205089f 100644 --- a/lib/zstd_opt.h +++ b/lib/zstd_opt.h @@ -342,6 +342,7 @@ static U32 ZSTD_BtGetAllMatches_selectMLS ( switch(matchLengthSearch) { default : + case 3 : return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 3, matches); case 4 : return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 4, matches); case 5 : return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 5, matches); case 6 : return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 6, matches); @@ -369,6 +370,7 @@ static U32 ZSTD_BtGetAllMatches_selectMLS_extDict ( switch(matchLengthSearch) { default : + case 3 : return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 3, matches); case 4 : return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 4, matches); case 5 : return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 5, matches); case 6 : return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 6, matches);