From: Yann Collet Date: Wed, 6 Jul 2016 11:27:22 +0000 (+0200) Subject: fixed conversion warning X-Git-Tag: v0.7.3^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=445d49d8980a8c7dc64e20184ff49379dced8feb;p=thirdparty%2Fzstd.git fixed conversion warning --- diff --git a/lib/dictBuilder/zdict.c b/lib/dictBuilder/zdict.c index 04b20ec7c..e81cdb3ae 100644 --- a/lib/dictBuilder/zdict.c +++ b/lib/dictBuilder/zdict.c @@ -96,7 +96,7 @@ static unsigned g_displayLevel = 0; /* 0 : no display; 1: errors; 2: defau if (ZDICT_clockSpan(g_time) > refreshRate) \ { g_time = clock(); DISPLAY(__VA_ARGS__); \ if (g_displayLevel>=4) fflush(stdout); } } -static const unsigned refreshRate = CLOCKS_PER_SEC * 3 / 10; +static const clock_t refreshRate = CLOCKS_PER_SEC * 3 / 10; static clock_t g_time = 0; static clock_t ZDICT_clockSpan(clock_t nPrevious) { return clock() - nPrevious; }