diff options
author | David Carlier <devnexen@gmail.com> | 2017-11-19 17:43:00 +0000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-02-19 13:19:03 -0800 |
commit | 73bfa90283fd109d9edf72bb2ee6c13fde65879c (patch) | |
tree | dfc003bc6e74683fb5c8aee84ec18c06f1b743bf /crawler.c | |
parent | 0348682d54bf7660b0a4d4551cecddda6a159334 (diff) | |
download | memcached-73bfa90283fd109d9edf72bb2ee6c13fde65879c.tar.gz |
Apply the cast to the whole expressions, fixing build with clang
Diffstat (limited to 'crawler.c')
-rw-r--r-- | crawler.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |