r1660 - trunk/varnish-cache/lib/libvcl
    phk at projects.linpro.no 
    phk at projects.linpro.no
       
    Mon Jul  9 22:34:59 CEST 2007
    
    
  
Author: phk
Date: 2007-07-09 22:34:59 +0200 (Mon, 09 Jul 2007)
New Revision: 1660
Modified:
   trunk/varnish-cache/lib/libvcl/vcc_action.c
Log:
Allow assignment to INT type variables
Modified: trunk/varnish-cache/lib/libvcl/vcc_action.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_action.c	2007-07-09 20:23:41 UTC (rev 1659)
+++ trunk/varnish-cache/lib/libvcl/vcc_action.c	2007-07-09 20:34:59 UTC (rev 1660)
@@ -155,6 +155,8 @@
 				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);
    
    
More information about the varnish-commit
mailing list