From: ko-zu Date: Mon, 17 Sep 2018 04:09:08 +0000 (+0900) Subject: Fix largeNbDicts bench for clangbuild X-Git-Tag: v0.0.29~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1324%2Fhead;p=thirdparty%2Fzstd.git Fix largeNbDicts bench for clangbuild Remove unsigned to size_t promotion to fix implicit down conversion errors in clangbuild target. --- diff --git a/contrib/largeNbDicts/largeNbDicts.c b/contrib/largeNbDicts/largeNbDicts.c index db9e730b3..e0bc55380 100644 --- a/contrib/largeNbDicts/largeNbDicts.c +++ b/contrib/largeNbDicts/largeNbDicts.c @@ -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];