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

diff --git a/NEWS b/NEWS
index 88e8c3b1fa599913fae4033ac8de56dc8d66fc9f..4569e12fcc10a93d2c1af002617975bb8e17bf8b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 v0.7.3
 added : `--` separator, stating that all following arguments are file names. Suggested by Chip Turner.
 added : OpenBSD target, by Juan Francisco Cantero Hurtado
+fixed : dictBuilder using HC levels, reported by Bartosz Taudul
 
 v0.7.2
 fixed : ZSTD_decompressBlock() using multiple consecutive blocks. Reported by Greg Slazinski.
index fa09acb3613349b15caab0102285686a9a92487c..04b20ec7cd064f416c0f3d7e6f1ee137088d2fdf 100644 (file)
@@ -99,6 +99,8 @@ static unsigned g_displayLevel = 0;   /* 0 : no display;   1: errors;   2: defau
 static const unsigned refreshRate = CLOCKS_PER_SEC * 3 / 10;
 static clock_t g_time = 0;
 
+static clock_t ZDICT_clockSpan(clock_t nPrevious) { return clock() - nPrevious; }
+
 static void ZDICT_printHex(U32 dlevel, const void* ptr, size_t length)
 {
     const BYTE* const b = (const BYTE*)ptr;
@@ -114,11 +116,6 @@ static void ZDICT_printHex(U32 dlevel, const void* ptr, size_t length)
 /*-********************************************************
 *  Helper functions
 **********************************************************/
-static unsigned ZDICT_clockSpan(clock_t nPrevious)
-{
-    return clock() - nPrevious;
-}
-
 unsigned ZDICT_isError(size_t errorCode) { return ERR_isError(errorCode); }
 
 const char* ZDICT_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }