]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix largeNbDicts bench for clangbuild 1324/head
authorko-zu <causeless@gmail.com>
Mon, 17 Sep 2018 04:09:08 +0000 (13:09 +0900)
committerko-zu <causeless@gmail.com>
Mon, 17 Sep 2018 04:09:08 +0000 (13:09 +0900)
Remove unsigned to size_t promotion to fix implicit down conversion errors in clangbuild target.

contrib/largeNbDicts/largeNbDicts.c

index db9e730b352273e3f055e5c6f02e9ba4532591fc..e0bc55380b29f977cbf6ee1111559db743214f49 100644 (file)
@@ -766,8 +766,8 @@ int main (int argc, const char** argv)
     const char* dictionary = NULL;
     int cLevel = CLEVEL_DEFAULT;
     size_t blockSize = BLOCKSIZE_DEFAULT;
-    size_t nbDicts = 0;  /* determine nbDicts automatically: 1 dictionary per block */
-    size_t nbBlocks = 0; /* determine nbBlocks automatically, from source and blockSize */
+    unsigned nbDicts = 0;  /* determine nbDicts automatically: 1 dictionary per block */
+    unsigned nbBlocks = 0; /* determine nbBlocks automatically, from source and blockSize */
 
     for (int argNb = 1; argNb < argc ; argNb++) {
         const char* argument = argv[argNb];