]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added missing "case 3:" in ZSTD_BtGetAllMatches
authorinikep <inikep@gmail.com>
Sun, 6 Mar 2016 22:21:52 +0000 (23:21 +0100)
committerinikep <inikep@gmail.com>
Sun, 6 Mar 2016 22:21:52 +0000 (23:21 +0100)
lib/zstd_internal.h
lib/zstd_opt.h

index b06097a212776084c559903b0ea023c8932f9c67..462161bd7bb4518f67fb4dfcae99b33075f7a12d 100644 (file)
@@ -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
index 780c5d415af73c145dd14f667e67f6d34307a47d..c6205089fa62e1e168e89db89ceae25acfab0340 100644 (file)
@@ -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);