From 929badd611544f28ed887c380f55e282a101e6bd Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 15 Nov 2016 14:57:12 -0800 Subject: fixed sign conversion warning --- programs/lz4io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/lz4io.c b/programs/lz4io.c index f34d715..4d076a9 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -134,9 +134,6 @@ static int g_blockIndependence = 1; static int g_sparseFileSupport = 1; static int g_contentSizeFlag = 0; -static const int minBlockSizeID = 4; -static const int maxBlockSizeID = 7; - /************************************** * Exceptions @@ -186,6 +183,8 @@ int LZ4IO_setTestMode(int yes) size_t LZ4IO_setBlockSizeID(unsigned bsid) { static const size_t blockSizeTable[] = { 64 KB, 256 KB, 1 MB, 4 MB }; + static const unsigned minBlockSizeID = 4; + static const unsigned maxBlockSizeID = 7; if ((bsid < minBlockSizeID) || (bsid > maxBlockSizeID)) return 0; g_blockSizeId = bsid; return blockSizeTable[g_blockSizeId-minBlockSizeID]; -- cgit v0.12