From 3c3624c3a6e1b1f7a85590e288b28e2b6eaf501b Mon Sep 17 00:00:00 2001 From: Takayuki Matsuoka Date: Sat, 29 May 2021 23:41:46 +0900 Subject: Fix g++-4.4 warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g++-4.4 creates the following warning for this line. ``` g++-4.4 -Wno-deprecated -O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror -I../lib -I../programs -DXXH_NAMESPACE=LZ4_ lz4frame.o lz4.o lz4hc.o xxhash.o checkFrame.c -o checkFrame checkFrame.c: In function ‘int frameCheck(cRess_t, FILE*, unsigned int, size_t)’: checkFrame.c:156: error: comparison between signed and unsigned integer expressions ``` --- tests/checkFrame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkFrame.c b/tests/checkFrame.c index 2b50bae..946805f 100644 --- a/tests/checkFrame.c +++ b/tests/checkFrame.c @@ -153,7 +153,7 @@ int frameCheck(cRess_t ress, FILE* const srcFile, unsigned bsid, size_t blockSiz if (LZ4F_isError(nextToLoad)) EXM_THROW(22, "Error getting frame info: %s", LZ4F_getErrorName(nextToLoad)); - if (frameInfo.blockSizeID != bsid) + if (frameInfo.blockSizeID != (LZ4F_blockSizeID_t) bsid) EXM_THROW(23, "Block size ID %u != expected %u", frameInfo.blockSizeID, bsid); pos += remaining; -- cgit v0.12