[master] db265fd03 Typo

Poul-Henning Kamp phk at FreeBSD.org
Wed May 19 12:42:06 UTC 2021


commit db265fd03495cda0adc2a9c45724e4f5c7c312a8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed May 19 12:41:17 2021 +0000

    Typo

diff --git a/vmod/vmod_std_conversions.c b/vmod/vmod_std_conversions.c
index 838cd60af..1a4e9b3dc 100644
--- a/vmod/vmod_std_conversions.c
+++ b/vmod/vmod_std_conversions.c
@@ -325,8 +325,8 @@ vmod_real2integer(VRT_CTX, VCL_REAL r, VCL_INT i)
 
 	if (!VRT_REAL_is_valid(r))
 		return (i);
-	retval = round(r);
-	if (!VRT_INT_is_valid(r))
+	retval = (VCL_INT)round(r);
+	if (!VRT_INT_is_valid(retval))
 		return (i);
 	return (retval);
 }


More information about the varnish-commit mailing list