From: Yann Collet Date: Wed, 2 Dec 2015 12:00:25 +0000 (+0100) Subject: minor cosmetic improvement for small blocks X-Git-Tag: zstd-0.4.2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9b34280a163f0ae59e80398f317aec6c77c4ac5;p=thirdparty%2Fzstd.git minor cosmetic improvement for small blocks --- diff --git a/programs/paramgrill.c b/programs/paramgrill.c index 346a9c34b..44d3ffdc7 100644 --- a/programs/paramgrill.c +++ b/programs/paramgrill.c @@ -681,6 +681,8 @@ static void BMK_selectRandomStart( /* totally random entry */ ZSTD_parameters p; potentialRandomParams(&p, 1); + p.srcSize = srcSize; + ZSTD_validateParams(&p); playAround(f, winners, p, srcBuffer, srcSize, ctx); } else @@ -734,6 +736,7 @@ static void BMK_benchMem(void* srcBuffer, size_t srcSize) for (i=1; i<=maxSeeds; i++) { params = ZSTD_getParams(i, blockSize); + ZSTD_validateParams(¶ms); BMK_seed(winners, params, srcBuffer, srcSize, ctx); } }