From 7c71fe4a2f44764802499d384c4eba22b08c34d9 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 2 Mar 2011 19:35:00 -0800 Subject: [PATCH] Fix #663 - type inference for sliced complex pointers. --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.26.2