Skip to content

Commit 877796c

Browse files
committed
fixed minor conversion warning
1 parent b352748 commit 877796c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/compress/zstd_compress.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7299,7 +7299,7 @@ ZSTD_compressSequencesAndLiterals(ZSTD_CCtx* cctx,
72997299
/* Transparent initialization stage, same as compressStream2() */
73007300
DEBUGLOG(4, "ZSTD_compressSequencesAndLiterals (dstCapacity=%zu)", dstCapacity);
73017301
assert(cctx != NULL);
7302-
FORWARD_IF_ERROR(ZSTD_CCtx_init_compressStream2(cctx, ZSTD_e_continue, ZSTD_CONTENTSIZE_UNKNOWN), "CCtx initialization failed");
7302+
FORWARD_IF_ERROR(ZSTD_CCtx_init_compressStream2(cctx, ZSTD_e_continue, (size_t)ZSTD_CONTENTSIZE_UNKNOWN), "CCtx initialization failed");
73037303

73047304
if (cctx->appliedParams.blockDelimiters == ZSTD_sf_noBlockDelimiters) {
73057305
RETURN_ERROR(frameParameter_unsupported, "This mode is only compatible with explicit delimiters");
@@ -7350,7 +7350,6 @@ size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
73507350
return ZSTD_compressStream2(zcs, output, &input, ZSTD_e_flush);
73517351
}
73527352

7353-
73547353
size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
73557354
{
73567355
ZSTD_inBuffer input = inBuffer_forEndFlush(zcs);

0 commit comments

Comments
 (0)