From d93ea8d2aaf1488fe526ff7a191e6264c4a8f1bb Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 11 Dec 2010 21:10:52 -0800 Subject: [PATCH] Fix #559, [] is not caught by Cython but by gcc --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 0e89b311..9482905d 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4045,7 +4045,7 @@ class ListNode(SequenceNode): self.obj_conversion_errors = [] if not self.type.subtype_of(dst_type): error(self.pos, "Cannot coerce list to type '%s'" % dst_type) - elif dst_type.is_ptr: + elif dst_type.is_ptr and dst_type.base_type is not PyrexTypes.c_void_type: base_type = dst_type.base_type self.type = PyrexTypes.CArrayType(base_type, len(self.args)) for i in range(len(self.original_args)): -- 2.26.2