fixed visual warnings

This commit is contained in:
Yann Collet
2017-05-31 01:17:44 -07:00
parent 01b1549f83
commit 9a691e0f55
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -3765,7 +3765,8 @@ size_t ZSTD_compress_generic_simpleArgs (
* @return : amount of data remaining to flush */
size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
{
ZSTD_inBuffer input = { &input, 0, 0 };
const char dummy[8] = {0};
ZSTD_inBuffer input = { dummy, 0, 0 };
if (output->pos > output->size) return ERROR(GENERIC);
CHECK_F( ZSTD_compressStream_generic(zcs, output, &input, ZSTD_e_flush) );
return zcs->outBuffContentSize - zcs->outBuffFlushedSize; /* remaining to flush */
@@ -3774,7 +3775,8 @@ size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
{
ZSTD_inBuffer input = { &input, 0, 0 };
const char dummy[8] = {0};
ZSTD_inBuffer input = { dummy, 0, 0 };
if (output->pos > output->size) return ERROR(GENERIC);
CHECK_F( ZSTD_compressStream_generic(zcs, output, &input, ZSTD_e_end) );