]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed conversion warning
authorYann Collet <yann.collet.73@gmail.com>
Wed, 6 Jul 2016 11:27:22 +0000 (13:27 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 6 Jul 2016 11:27:22 +0000 (13:27 +0200)
lib/dictBuilder/zdict.c

index 04b20ec7cd064f416c0f3d7e6f1ee137088d2fdf..e81cdb3ae055ec5928077355ebe3103c214da662 100644 (file)
@@ -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; }