]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Compilation Error (`uint32_t` -> `size_t`)
authorW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 17:59:09 +0000 (13:59 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 17:59:09 +0000 (13:59 -0400)
tests/fuzzer.c

index cfe477d31e874fe0ae0c9ebd6937da55477f062f..0956b9c5e9ed6c843107b8eeadabb7c1bf21aeea 100644 (file)
@@ -2153,8 +2153,8 @@ static int basicUnitTests(U32 const seed, double compressibility)
     DISPLAYLEVEL(3, "test%3i : table cleanliness through index reduction : ", testNb++);
     {
         int cLevel;
-        uint32_t approxIndex = 0;
-        uint32_t maxIndex = ((3U << 29) + (1U << ZSTD_WINDOWLOG_MAX)); /* ZSTD_CURRENT_MAX from zstd_compress_internal.h */
+        size_t approxIndex = 0;
+        size_t maxIndex = ((3U << 29) + (1U << ZSTD_WINDOWLOG_MAX)); /* ZSTD_CURRENT_MAX from zstd_compress_internal.h */
 
         /* vastly overprovision space in a static context so that we can do all
          * this without ever reallocating, which would reset the indices */