[master] 2921ac509 Flexelinting

Poul-Henning Kamp phk at FreeBSD.org
Mon Feb 19 08:25:09 UTC 2024


commit 2921ac509cfbc6ca914e88ef682122691eb8f048
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 19 08:24:11 2024 +0000

    Flexelinting

diff --git a/lib/libvarnish/vtim.c b/lib/libvarnish/vtim.c
index 6fdd18245..01e218db5 100644
--- a/lib/libvarnish/vtim.c
+++ b/lib/libvarnish/vtim.c
@@ -460,7 +460,7 @@ VTIM_poll_tmo(vtim_dur tmo)
 
 	if (isnan(tmo))
 		return (-1);
-	return (vmax_t(int, 0, tmo * 1e3));
+	return (vmax_t(int, 0, ((int)(tmo * 1e3))));
 }
 
 #ifdef TEST_DRIVER


More information about the varnish-commit mailing list