Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-03-18 03:52:11 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-03-18 03:52:11 +0300
commitea59552c4ef47bcab8859f832547c8ac9c10713e (patch)
tree3827e5c669646f47760c76975cca7da5ca330ae9 /zstd/dictBuilder
parent7d14aac1371431136030ec0ef06460f5d1bca5ef (diff)
Bump zstd to 1.5.2.
Diffstat (limited to 'zstd/dictBuilder')
-rw-r--r--zstd/dictBuilder/zdict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zstd/dictBuilder/zdict.c b/zstd/dictBuilder/zdict.c
index 8b8b381e..006aba7c 100644
--- a/zstd/dictBuilder/zdict.c
+++ b/zstd/dictBuilder/zdict.c
@@ -682,8 +682,8 @@ static void ZDICT_countEStats(EStats_ress_t esr, const ZSTD_parameters* params,
if (nbSeq >= 2) { /* rep offsets */
const seqDef* const seq = seqStorePtr->sequencesStart;
- U32 offset1 = seq[0].offset - 3;
- U32 offset2 = seq[1].offset - 3;
+ U32 offset1 = seq[0].offBase - ZSTD_REP_NUM;
+ U32 offset2 = seq[1].offBase - ZSTD_REP_NUM;
if (offset1 >= MAXREPOFFSET) offset1 = 0;
if (offset2 >= MAXREPOFFSET) offset2 = 0;
repOffsets[offset1] += 3;