From: W. Felix Handte Date: Tue, 17 Aug 2021 15:31:15 +0000 (-0400) Subject: Fix Benchmark Corruption Display X-Git-Tag: v1.5.1~1^2~116^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab8aa49b8d2383adfa9ef86ab4bd4a1a0d43c7fa;p=thirdparty%2Fzstd.git Fix Benchmark Corruption Display --- diff --git a/programs/benchzstd.c b/programs/benchzstd.c index 32ce60593..d77959aac 100644 --- a/programs/benchzstd.c +++ b/programs/benchzstd.c @@ -523,7 +523,7 @@ BMK_benchMemAdvancedNoAlloc( DISPLAY("%02X ", ((const BYTE*)srcBuffer)[u+n]); DISPLAY(" \n"); DISPLAY("decode: "); - for (n=lowest; n>0; n++) + for (n=lowest; n>0; n--) DISPLAY("%02X ", resultBuffer[u-n]); DISPLAY(" :%02X: ", resultBuffer[u]); for (n=1; n<3; n++)