diff options
author | Yann Collet <cyan@fb.com> | 2018-02-20 22:13:13 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-02-20 22:13:13 (GMT) |
commit | 34c1634d4bb8058909a736c284e889e5c0d7f146 (patch) | |
tree | e237a90ce07ab217762c06de2cfae17264557be0 /programs | |
parent | ae3dededed1c6c1a9b4c631d9edba690c4abb59c (diff) | |
download | lz4-34c1634d4bb8058909a736c284e889e5c0d7f146.zip lz4-34c1634d4bb8058909a736c284e889e5c0d7f146.tar.gz lz4-34c1634d4bb8058909a736c284e889e5c0d7f146.tar.bz2 |
fixed minor conversion warning
Diffstat (limited to 'programs')
-rw-r--r-- | programs/bench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/bench.c b/programs/bench.c index 0b1cf5c..14b6dd1 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -221,8 +221,8 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize, U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); UTIL_time_t coolTime; U64 const maxTime = (g_nbSeconds * TIMELOOP_NANOSEC) + 100; - U32 nbCompressionLoops = ((5 MB) / (srcSize+1)) + 1; /* conservative initial compression speed estimate */ - U32 nbDecodeLoops = ((200 MB) / (srcSize+1)) + 1; /* conservative initial decode speed estimate */ + U32 nbCompressionLoops = (U32)((5 MB) / (srcSize+1)) + 1; /* conservative initial compression speed estimate */ + U32 nbDecodeLoops = (U32)((200 MB) / (srcSize+1)) + 1; /* conservative initial decode speed estimate */ U64 totalCTime=0, totalDTime=0; U32 cCompleted=0, dCompleted=0; # define NB_MARKS 4 |