]> err.no Git - varnish/commitdiff
Allow assignment to INT type variables
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 9 Jul 2007 20:34:59 +0000 (20:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 9 Jul 2007 20:34:59 +0000 (20:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1660 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index db6089e83b22d1adfff77c24bcd457284981aa1a..9084b30eb472031c686aeb76c53c0f95741b1a18 100644 (file)
@@ -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);