Skip to content

Commit

Permalink
assert externalRepSearch != ZSTD_ps_auto
Browse files Browse the repository at this point in the history
  • Loading branch information
embg committed Feb 2, 2023
1 parent 7f8189c commit 3fe5f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compress/zstd_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -6335,6 +6335,7 @@ ZSTD_copySequencesToSeqStoreExplicitBlockDelim(ZSTD_CCtx* cctx,
}

/* If we skipped repcode search while parsing, we need to update repcodes now */
assert(externalRepSearch != ZSTD_ps_auto);
assert(idx >= startIdx);
if (externalRepSearch == ZSTD_ps_disable && idx != startIdx) {
U32* const rep = updatedRepcodes.rep;
Expand Down

0 comments on commit 3fe5f1f

Please sign in to comment.