Commit fdc649fd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Allow assignment to INT type variables


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1660 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f9662fec
...@@ -155,6 +155,8 @@ parse_set(struct tokenlist *tl) ...@@ -155,6 +155,8 @@ parse_set(struct tokenlist *tl)
vcc_RateVal(tl); vcc_RateVal(tl);
else if (vp->fmt == FLOAT) else if (vp->fmt == FLOAT)
Fb(tl, 0, "%g", vcc_DoubleVal(tl)); Fb(tl, 0, "%g", vcc_DoubleVal(tl));
else if (vp->fmt == INT)
Fb(tl, 0, "%u", vcc_UintVal(tl));
else { else {
vsb_printf(tl->sb, "Cannot assign this variable type.\n"); vsb_printf(tl->sb, "Cannot assign this variable type.\n");
vcc_ErrWhere(tl, vt); vcc_ErrWhere(tl, vt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment