diff options
author | Yann Collet <cyan@fb.com> | 2022-07-13 18:43:37 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2022-07-13 18:43:37 (GMT) |
commit | c76c9c53ace36ce340d29d1df5eeedd8ba4d43bc (patch) | |
tree | dda3e7b35145256832772d8a9d538b37a1432ef4 /tests | |
parent | 270529e80e12f0aa1778d64047472d049129c15d (diff) | |
parent | 6adf4282c24422c5e4d30687610cec4c4cbc3d74 (diff) | |
download | lz4-c76c9c53ace36ce340d29d1df5eeedd8ba4d43bc.zip lz4-c76c9c53ace36ce340d29d1df5eeedd8ba4d43bc.tar.gz lz4-c76c9c53ace36ce340d29d1df5eeedd8ba4d43bc.tar.bz2 |
Merge branch 'dev' into lz4f_customMem
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frametest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/frametest.c b/tests/frametest.c index b646f4b..00b8acb 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; |