]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix implicit conversion error 842/head
authorStella Lau <laus@fb.com>
Wed, 13 Sep 2017 23:01:16 +0000 (16:01 -0700)
committerStella Lau <laus@fb.com>
Wed, 13 Sep 2017 23:01:16 +0000 (16:01 -0700)
tests/decodecorpus.c

index a2e44950c60da44bbeb0f57f8d284f4d7c1fc422..9cde2825e34ba66a04d6e2d0de775790c649e794 100644 (file)
@@ -292,7 +292,7 @@ static void writeFrameHeader(U32* seed, frame_t* frame, dictInfo info)
             highBit = 1ULL << RAND_range(seed, 7, g_maxDecompressedSizeLog);
         } else if (RAND(seed) & 3) {
             /* do small content */
-            highBit = 1ULL << RAND_range(seed, 0, MIN(7, 1ULL << g_maxDecompressedSizeLog));
+            highBit = 1ULL << RAND_range(seed, 0, MIN(7, 1U << g_maxDecompressedSizeLog));
         } else {
             /* 0 size frame */
             highBit = 0;