Skip to content

Commit 2f55e2e

Browse files
committed
restore full equation
do not solve the equation, even though some members cancel each other, this is done for clarity, we'll let the compiler do the resolution at compile time.
1 parent efacead commit 2f55e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compress/zstd_compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7342,7 +7342,7 @@ size_t ZSTD_convertBlockSequences(ZSTD_CCtx* cctx,
73427342
DEBUGLOG(5, "long literals length detected at pos %zu", longl-nbSequences);
73437343
assert(longl <= 2* (nbSequences-1));
73447344
cctx->seqStore.longLengthType = ZSTD_llt_literalLength;
7345-
cctx->seqStore.longLengthPos = (U32)(longl-nbSequences);
7345+
cctx->seqStore.longLengthPos = (U32)(longl-(nbSequences-1)-1);
73467346
}
73477347
}
73487348
} else {

0 commit comments

Comments
 (0)