[master] ee51ce056 integer types consistency
Nils Goroll
nils.goroll at uplex.de
Mon Feb 18 12:04:10 UTC 2019
commit ee51ce05625de5ed2fd88bc7eee17c9f4abbc18d
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Feb 18 13:02:39 2019 +0100
integer types consistency
Thank you, @fgsch
diff --git a/bin/varnishd/cache/cache_ban.c b/bin/varnishd/cache/cache_ban.c
index 122fd9aab..283cad024 100644
--- a/bin/varnishd/cache/cache_ban.c
+++ b/bin/varnishd/cache/cache_ban.c
@@ -766,8 +766,8 @@ ccf_ban(struct cli *cli, const char * const *av, void *priv)
// XXX move to VTIM?
#define vdur_render(buf, dur) do { \
- uint64_t dec = (uint64_t)floor(dur); \
- uint64_t frac = (uint64_t)floor((dur) * 1e3) % UINT64_C(1000); \
+ uintmax_t dec = (uintmax_t)floor(dur); \
+ uintmax_t frac = (uintmax_t)floor((dur) * 1e3) % UINTMAX_C(1000); \
if (dec == 0 && frac == 0) \
(void) strncpy(buf, "0s", sizeof(buf)); \
else if (dec == 0) \
More information about the varnish-commit
mailing list