From 4840e443d741dbcb16edddf97ebedaf860b4f88e Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 9 Jul 2007 20:34:59 +0000 Subject: [PATCH] Allow assignment to INT type variables git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1660 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_action.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5