[master] 87771b9bb Add missing cast

Nils Goroll nils.goroll at uplex.de
Thu Nov 4 10:16:08 UTC 2021


commit 87771b9bbacfc58b10b6c1aff9e96710ac0c25cd
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Nov 4 11:12:37 2021 +0100

    Add missing cast
    
    fixes regression from 9a20cdfd3fa6dac117b523082116c804fcca6332

diff --git a/lib/libvcc/vcc_xref.c b/lib/libvcc/vcc_xref.c
index 3e5573eb6..035c42cfb 100644
--- a/lib/libvcc/vcc_xref.c
+++ b/lib/libvcc/vcc_xref.c
@@ -408,7 +408,7 @@ vcc_instance_info(struct vcc *tl, const struct symbol *sym)
 
 	CHECK_OBJ_NOTNULL(sym, SYMBOL_MAGIC);
 	AN(sym->rname);
-	Fc(tl, 0, "\t{ .p = &%s, .name = \"", sym->rname);
+	Fc(tl, 0, "\t{ .p = (uintptr_t *)&%s, .name = \"", sym->rname);
 	VCC_SymName(tl->fc, sym);
 	Fc(tl, 0, "\" },\n");
 }


More information about the varnish-commit mailing list