~ruther/guix-local

ref: d8e2caa60b5d06e56321f7bdedb21acea9b6a162 guix-local/gnu/packages/patches/pnet-fix-line-number-info.patch -rw-r--r-- 507 bytes
d8e2caa6 — Sharlatan Hellseher gnu: python-hdmedians: Switch to Pytest backend. 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/codegen/cg_coerce.c b/codegen/cg_coerce.c
index 92d2f59a..c90ad5e2 100644
--- a/codegen/cg_coerce.c
+++ b/codegen/cg_coerce.c
@@ -1203,6 +1203,8 @@ int ILCoerce(ILGenInfo *info, ILNode *node, ILNode **parent,
 					!= ILMachineType_Void)
 	{
 		*parent = ILNode_CastSimple_create(node, constType);
+                yysetfilename(*parent, yygetfilename(node));
+		yysetlinenum(*parent, yygetlinenum(node));
 		return 1;
 	}
 	else if(indirect && GetIndirectConvertRules(info,fromType,toType,0,