[master] cb4d034 Fix previous in 32 bits archs

Federico G. Schwindt fgsch at lodoss.net
Mon Jan 30 18:39:05 CET 2017


commit cb4d034662a6ec3fddaf4019a0fb36b5e9a17c99
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Jan 30 17:29:27 2017 +0000

    Fix previous in 32 bits archs

diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index 52c0041..974a80f 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -861,7 +861,8 @@ vcc_expr4(struct vcc *tl, struct expr **e, vcc_type_t fmt)
 			} else if (i || fmt == REAL)
 				e1 = vcc_mk_expr(REAL, "%f", d);
 			else
-				e1 = vcc_mk_expr(INT, "%ld", (long)d);
+				e1 = vcc_mk_expr(INT, "%ld",
+				    (unsigned long)d);
 		}
 		e1->constant = EXPR_CONST;
 		*e = e1;



More information about the varnish-commit mailing list