[master] e109aab02 Flexelinting

Poul-Henning Kamp phk at FreeBSD.org
Wed Jun 2 15:53:05 UTC 2021


commit e109aab0291413d75514105d5372daa4b31bba3e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jun 2 15:51:48 2021 +0000

    Flexelinting

diff --git a/vmod/vmod_std_conversions.c b/vmod/vmod_std_conversions.c
index bcdfac438..662aec4b5 100644
--- a/vmod/vmod_std_conversions.c
+++ b/vmod/vmod_std_conversions.c
@@ -170,7 +170,7 @@ vmod_integer(VRT_CTX, struct VARGS(integer) *a)
 		p = a->s;
 		r = SF_Parse_Number(&p, 0, &errtxt);
 		if (!errno && *p == '\0' && modf(r, &tmp) == 0.0)
-			return (r);
+			return ((VCL_INT)r);
 		r = NAN;
 	}
 


More information about the varnish-commit mailing list