fixed decode-only test condition

This commit is contained in:
Yann Collet 2018-11-13 14:15:12 -08:00
parent a29e3d1d01
commit 3ba0d6dd27

View File

@ -380,7 +380,7 @@ BMK_benchMemAdvancedNoAlloc(
cPtr += cCapacities[nbBlocks];
resPtr += thisBlockSize;
remaining -= thisBlockSize;
if (BMK_decodeOnly) {
if (adv->mode == BMK_decodeOnly) {
assert(nbBlocks==0);
cSizes[nbBlocks] = thisBlockSize;
benchResult.cSize = thisBlockSize;