diff options
-rw-r--r-- | src/libutil/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 9c943108f..5f279140c 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1853,8 +1853,8 @@ rspamd_get_virtual_ticks (void) #ifdef HAVE_CLOCK_GETTIME struct timespec ts; - static clockid_t cid = -1; - if (cid == -1) { + static clockid_t cid = (clockid_t)-1; + if (cid == (clockid_t)-1) { # ifdef HAVE_CLOCK_GETCPUCLOCKID if (clock_getcpuclockid (0, &cid) == -1) { # endif |