summaryrefslogtreecommitdiffstats
path: root/tests/checkFrame.c
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2021-05-29 14:41:46 (GMT)
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2021-05-30 07:53:16 (GMT)
commit3c3624c3a6e1b1f7a85590e288b28e2b6eaf501b (patch)
tree24758e9f0af59b8d38cec0237775ffdf83854cab /tests/checkFrame.c
parent634fa2047d217f1c62222071a8313bc5e17d4509 (diff)
downloadlz4-3c3624c3a6e1b1f7a85590e288b28e2b6eaf501b.zip
lz4-3c3624c3a6e1b1f7a85590e288b28e2b6eaf501b.tar.gz
lz4-3c3624c3a6e1b1f7a85590e288b28e2b6eaf501b.tar.bz2
Fix g++-4.4 warning
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 ```
Diffstat (limited to 'tests/checkFrame.c')
-rw-r--r--tests/checkFrame.c2
1 files changed, 1 insertions, 1 deletions
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;