From 25d00d10fc479c516206373571f75cc213f5415a Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 20 Feb 2018 16:52:28 -0800 Subject: [PATCH] fixed minor conversion warning --- programs/bench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/bench.c b/programs/bench.c index 5997cfbca..b4cd619c4 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -352,7 +352,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize, if (loopDuration > 0) { if (loopDuration < fastestC * nbCompressionLoops) fastestC = loopDuration / nbCompressionLoops; - nbCompressionLoops = (TIMELOOP_NANOSEC / fastestC) + 1; + nbCompressionLoops = (U32)(TIMELOOP_NANOSEC / fastestC) + 1; } else { assert(nbCompressionLoops < 40000000); /* avoid overflow */ nbCompressionLoops *= 100; @@ -411,7 +411,7 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize, if (loopDuration > 0) { if (loopDuration < fastestD * nbDecodeLoops) fastestD = loopDuration / nbDecodeLoops; - nbDecodeLoops = (TIMELOOP_NANOSEC / fastestD) + 1; + nbDecodeLoops = (U32)(TIMELOOP_NANOSEC / fastestD) + 1; } else { assert(nbDecodeLoops < 40000000); /* avoid overflow */ nbDecodeLoops *= 100; -- 2.47.2