summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2022-07-13 16:40:27 (GMT)
committerGitHub <noreply@github.com>2022-07-13 16:40:27 (GMT)
commit6adf4282c24422c5e4d30687610cec4c4cbc3d74 (patch)
treebfe9f76eddf29139db6a26d5d79af292a232db69 /tests
parent16ac87590124d474fd8fc0c27eb0941c46a55b62 (diff)
parent832b444266053ab86d32b8a2f8b25a3f8abff703 (diff)
downloadlz4-6adf4282c24422c5e4d30687610cec4c4cbc3d74.zip
lz4-6adf4282c24422c5e4d30687610cec4c4cbc3d74.tar.gz
lz4-6adf4282c24422c5e4d30687610cec4c4cbc3d74.tar.bz2
Merge pull request #1114 from lz4/blockSize
minor : proper interface for LZ4F_getBlockSize()
Diffstat (limited to 'tests')
-rw-r--r--tests/frametest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index a496c3c..58eac38 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -686,20 +686,20 @@ int basicTests(U32 seed, double compressibility)
{ size_t result;
unsigned blockSizeID;
for (blockSizeID = 4; blockSizeID < 8; ++blockSizeID) {
- result = LZ4F_getBlockSize(blockSizeID);
+ result = LZ4F_getBlockSize((LZ4F_blockSizeID_t)blockSizeID);
CHECK(result);
DISPLAYLEVEL(3, "Returned block size of %u bytes for blockID %u \n",
(unsigned)result, blockSizeID);
}
/* Test an invalid input that's too large */
- result = LZ4F_getBlockSize(8);
+ result = LZ4F_getBlockSize((LZ4F_blockSizeID_t)8);
if(!LZ4F_isError(result) ||
LZ4F_getErrorCode(result) != LZ4F_ERROR_maxBlockSize_invalid)
goto _output_error;
/* Test an invalid input that's too small */
- result = LZ4F_getBlockSize(3);
+ result = LZ4F_getBlockSize((LZ4F_blockSizeID_t)3);
if(!LZ4F_isError(result) ||
LZ4F_getErrorCode(result) != LZ4F_ERROR_maxBlockSize_invalid)
goto _output_error;