]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed minor visual conversion warning
authorYann Collet <yann.collet.73@gmail.com>
Sun, 5 Jun 2016 22:46:56 +0000 (00:46 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Sun, 5 Jun 2016 22:46:56 +0000 (00:46 +0200)
lib/compress/zstd_compress.c

index 39f0739627af460cadfccdbb7f9944a92f0d1deb..da0409f88c408e865008d98f5de48a0445c9f902 100644 (file)
@@ -269,7 +269,7 @@ static size_t ZSTD_resetCCtx_advanced (ZSTD_CCtx* zc,
     const U32 hashLog3 = (params.cParams.searchLength>3) ? 0 :
                         ( (!frameContentSize || frameContentSize >= 8192) ? ZSTD_HASHLOG3_MAX :
                           ((frameContentSize >= 2048) ? ZSTD_HASHLOG3_MIN + 1 : ZSTD_HASHLOG3_MIN) );
-    const size_t h3Size = 1 << hashLog3;
+    const size_t h3Size = ((size_t)1) << hashLog3;
     const size_t tableSpace = (chainSize + hSize + h3Size) * sizeof(U32);
 
     /* Check if workSpace is large enough, alloc a new one if needed */