summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--programs/lz4io.c5
1 files 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];