aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-13 20:43:37 +0200
committerYann Collet <cyan@fb.com>2022-07-13 20:43:37 +0200
commitc76c9c53ace36ce340d29d1df5eeedd8ba4d43bc (patch)
treedda3e7b35145256832772d8a9d538b37a1432ef4 /tests
parent270529e80e12f0aa1778d64047472d049129c15d (diff)
parent6adf4282c24422c5e4d30687610cec4c4cbc3d74 (diff)
downloadlz4-c76c9c53ace36ce340d29d1df5eeedd8ba4d43bc.tar.gz
Merge branch 'dev' into lz4f_customMem
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 b646f4bf..00b8acbb 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -738,20 +738,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;