[master] 4505710 Cast to annoy Flexelint a tiny bit less

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 16 21:43:38 CET 2015


commit 4505710e80c59fb41e1c302592b3fa038746e111
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 16 20:43:00 2015 +0000

    Cast to annoy Flexelint a tiny bit less

diff --git a/bin/varnishd/common/common_vsm.c b/bin/varnishd/common/common_vsm.c
index 94c3e3c..94d583d 100644
--- a/bin/varnishd/common/common_vsm.c
+++ b/bin/varnishd/common/common_vsm.c
@@ -388,5 +388,5 @@ VSM_common_ageupdate(const struct vsm_sc *sc)
 {
 
 	CHECK_OBJ_NOTNULL(sc, VSM_SC_MAGIC);
-	sc->head->age = VTIM_mono() - sc->t0;
+	sc->head->age = (uint64_t)(VTIM_mono() - sc->t0);
 }



More information about the varnish-commit mailing list