~ruther/guix-local

ref: 8240f35e15ab46f36d76b4ea5518113c67e2c607 guix-local/gnu/packages/patches/pnet-fix-off-by-one.patch -rw-r--r-- 504 bytes
8240f35e — Sharlatan Hellseher gnu: python-parse-type: Update to 0.6.6. 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/codegen/cg_genattr.c b/codegen/cg_genattr.c
index 535852da..c3acc0dc 100644
--- a/codegen/cg_genattr.c
+++ b/codegen/cg_genattr.c
@@ -1532,7 +1532,7 @@ static int MarshalAsAttribute(ILGenInfo *info,
 			else
 			{
 				sizeParamIndex = attributeInfo->namedArgs[currentNamedArg].evalValue.un.i4Value;
-				if(sizeParamIndex <= 0)
+				if(sizeParamIndex < 0)
 				{
 					CGErrorForNode(info, attributeInfo->namedArgs[currentNamedArg].node,
 						_("The size parameter index must be >= 0"));