summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-02 04:04:56 (GMT)
committerYann Collet <cyan@fb.com>2016-11-02 04:04:56 (GMT)
commit59adfd82d6c00c005a88ef5bdd405204d71d5729 (patch)
tree0e138c0edf714f44dab445ff0188a3b682a67077 /programs
parent67500142c16972e8d15f71f74adda1ce966a7a35 (diff)
downloadlz4-59adfd82d6c00c005a88ef5bdd405204d71d5729.zip
lz4-59adfd82d6c00c005a88ef5bdd405204d71d5729.tar.gz
lz4-59adfd82d6c00c005a88ef5bdd405204d71d5729.tar.bz2
fix for ARM platform
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index f90cb50..492363f 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -125,10 +125,10 @@
static int g_displayLevel = 0; /* 0 : no display ; 1: errors ; 2 : + result + interaction + warnings ; 3 : + progression; 4 : + information */
#define DISPLAYUPDATE(l, ...) if (g_displayLevel>=l) { \
- if (((g_time - clock()) > refreshRate) || (g_displayLevel>=4)) \
+ if (((clock_t)(g_time - clock()) > refreshRate) || (g_displayLevel>=4)) \
{ g_time = clock(); DISPLAY(__VA_ARGS__); \
if (g_displayLevel>=4) fflush(stderr); } }
-static const unsigned refreshRate = CLOCKS_PER_SEC / 6;
+static const clock_t refreshRate = CLOCKS_PER_SEC / 6;
static clock_t g_time = 0;