[master] d223152 Drop isfinite for integer conversion

Tollef Fog Heen tfheen at varnish-cache.org
Mon Jun 6 10:15:59 CEST 2011

commit d223152d5e233493ac2fdb461c309a9418d871ac
Author: Tollef Fog Heen <tfheen at err.no>
Date:   Mon Jun 6 09:58:36 2011 +0200

    Drop isfinite for integer conversion
    Checking for isfinite does not make any sense for an integer
    conversion and causes compilation problems on Solaris.
    Fixes: #931

diff --git a/lib/libvmod_std/vmod_std_conversions.c b/lib/libvmod_std/vmod_std_conversions.c
index b2c37da..6d27ce5 100644
--- a/lib/libvmod_std/vmod_std_conversions.c
+++ b/lib/libvmod_std/vmod_std_conversions.c
@@ -109,9 +109,6 @@ vmod_integer(struct sess *sp, const char *p, int i)
 	r = strtol(p, &e, 0);
-	if (!isfinite(r))
-		return (i);
 	if (e == NULL)
 		return (i);

More information about the varnish-commit mailing list