]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed decode-only test condition
authorYann Collet <cyan@fb.com>
Tue, 13 Nov 2018 22:15:12 +0000 (14:15 -0800)
committerYann Collet <cyan@fb.com>
Tue, 13 Nov 2018 22:15:12 +0000 (14:15 -0800)
programs/benchzstd.c

index 7f2da9318305dd749b0e478e6bda6dd29aeeee2f..5c3de10c232e1125a1db1b36341fb406f3f73adf 100644 (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;