summaryrefslogtreecommitdiff
path: root/crawler.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2017-11-19 17:43:00 +0000
committerdormando <dormando@rydia.net>2018-02-19 13:19:03 -0800
commit73bfa90283fd109d9edf72bb2ee6c13fde65879c (patch)
treedfc003bc6e74683fb5c8aee84ec18c06f1b743bf /crawler.c
parent0348682d54bf7660b0a4d4551cecddda6a159334 (diff)
downloadmemcached-73bfa90283fd109d9edf72bb2ee6c13fde65879c.tar.gz
Apply the cast to the whole expressions, fixing build with clang
Diffstat (limited to 'crawler.c')
-rw-r--r--crawler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawler.c b/crawler.c
index eb1888f..9c81bba 100644
--- a/crawler.c
+++ b/crawler.c
@@ -252,8 +252,8 @@ static void crawler_metadump_eval(crawler_module_t *cm, item *it, uint32_t hv, i
int total = snprintf(cm->c.cbuf, 4096,
"key=%s exp=%ld la=%llu cas=%llu fetch=%s cls=%u size=%lu\n",
keybuf,
- (it->exptime == 0) ? -1 : (long)it->exptime + process_started,
- (unsigned long long)it->time + process_started,
+ (it->exptime == 0) ? -1 : (long)(it->exptime + process_started),
+ (unsigned long long)(it->time + process_started),
(unsigned long long)ITEM_get_cas(it),
(it->it_flags & ITEM_FETCHED) ? "yes" : "no",
ITEM_clsid(it),