minor explicit cast warning

This commit is contained in:
Yann Collet 2019-01-09 12:41:03 -08:00
parent e953474464
commit fbebf0345d

View File

@ -1108,7 +1108,7 @@ static void FUZ_unitTests(int compressionLevel)
LZ4_resetStreamHC(&sHC, 3);
assert(blockSize < INT_MAX);
srcSize = (int)blockSize;
result = LZ4_compress_HC_destSize(&sHC, block, dstBlock, &srcSize, targetSize, 3);
result = LZ4_compress_HC_destSize(&sHC, block, dstBlock, &srcSize, (int)targetSize, 3);
FUZ_CHECKTEST(result!=0, "LZ4_compress_HC_destSize() : compression must fail !");
FUZ_CHECKTEST(((char*)dstBlock)[targetSize] != sentinel, "LZ4_compress_HC_destSize()")