[master] 913069f45 Tell the C-compiler that VCL_INT is long-long-int.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Dec 22 14:48:05 UTC 2025
commit 913069f45f43df92bbdad97891f7a5d92cd23afb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Dec 22 14:46:04 2025 +0000
Tell the C-compiler that VCL_INT is long-long-int.
Spottedby: @nigoroll
Fixes: #4431
diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index 4f1d41c95..090a7b5e5 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -747,7 +747,7 @@ vcc_number(struct vcc *tl, struct expr **e, vcc_type_t fmt, const char *sign)
} else if (fmt == REAL || t->tok == FNUM) {
e1 = vcc_mk_expr(REAL, "%s%.3f", sign, t->num);
} else {
- e1 = vcc_mk_expr(INT, "%s%.0f", sign, t->num);
+ e1 = vcc_mk_expr(INT, "%s%.0fLL", sign, t->num);
}
}
e1->constant = EXPR_CONST;
More information about the varnish-commit
mailing list