From: phk Date: Mon, 9 Jul 2007 20:34:59 +0000 (+0000) Subject: Allow assignment to INT type variables X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4840e443d741dbcb16edddf97ebedaf860b4f88e;p=varnish Allow assignment to INT type variables git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1660 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_action.c b/varnish-cache/lib/libvcl/vcc_action.c index db6089e8..9084b30e 100644 --- a/varnish-cache/lib/libvcl/vcc_action.c +++ b/varnish-cache/lib/libvcl/vcc_action.c @@ -155,6 +155,8 @@ parse_set(struct tokenlist *tl) vcc_RateVal(tl); else if (vp->fmt == FLOAT) Fb(tl, 0, "%g", vcc_DoubleVal(tl)); + else if (vp->fmt == INT) + Fb(tl, 0, "%u", vcc_UintVal(tl)); else { vsb_printf(tl->sb, "Cannot assign this variable type.\n"); vcc_ErrWhere(tl, vt);