]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Benchmark Corruption Display
authorW. Felix Handte <w@felixhandte.com>
Tue, 17 Aug 2021 15:31:15 +0000 (11:31 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 1 Sep 2021 18:15:03 +0000 (14:15 -0400)
programs/benchzstd.c

index 32ce605930e24012cec0b951ccda852167e6b298..d77959aac94d65bc80c3bb04a2a288e58cf02975 100644 (file)
@@ -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++)