From: Robert Bradshaw Date: Sun, 12 Dec 2010 05:10:52 +0000 (-0800) Subject: Fix #559, [] is not caught by Cython but by gcc X-Git-Tag: 0.14.1rc0~13^2~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d93ea8d2aaf1488fe526ff7a191e6264c4a8f1bb;p=cython.git Fix #559, [] is not caught by Cython but by gcc --- 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)):