Commits

Ronald Oussoren  committed 5b9e4f6

Add an alternative signature for CFRange to the code that
extract a length from a value, this will enable cleanup
of bridgesupport files.

  • Participants
  • Parent commits 019be6e
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

File pyobjc-core/Modules/objc/libffi_support.m

 		return ((CFRange*)pvalue)->length;
 	}
 #endif
+	if (strncmp(type, "{_CFRange=ll}", sizeof("{_CFRange=ll}") - 1) == 0) {
+		return ((CFRange*)pvalue)->length;
+	}
 
 	if (strncmp(type, @encode(CFArrayRef), sizeof(@encode(CFArrayRef))-1) == 0 || 
 		strncmp(type, @encode(CFMutableArrayRef), sizeof(@encode(CFMutableArrayRef))-1) == 0) {