From: Robert Bradshaw Date: Thu, 3 Mar 2011 03:35:00 +0000 (-0800) Subject: Fix #663 - type inference for sliced complex pointers. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c71fe4a2f44764802499d384c4eba22b08c34d9;p=cython.git Fix #663 - type inference for sliced complex pointers. --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 2a94ad1f..c9652510 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2494,6 +2494,8 @@ class SliceIndexNode(ExprNode): elif base_type in (bytes_type, str_type, unicode_type, list_type, tuple_type): return base_type + elif base_type.is_ptr or base_type.is_array: + return PyrexTypes.c_array_type(base_type.base_type, None) return py_object_type def calculate_constant_result(self):