fixed crc bug in rare timing conditions within bench.c

This commit is contained in:
Yann Collet
2016-08-21 01:04:46 +02:00
parent 70c2326bf1
commit d1733f7417
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
(void)fastestD; (void)crcOrig; /* unused when decompression disabled */
#if 1
/* Decompression */
memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */
if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */
UTIL_sleepMilli(1); /* give processor time to other processes */
UTIL_waitForNextTick(ticksPerSecond);