Commit 7c71fe4a authored by Robert Bradshaw's avatar Robert Bradshaw

Fix #663 - type inference for sliced complex pointers.

parent 829d6485
...@@ -2494,6 +2494,8 @@ class SliceIndexNode(ExprNode): ...@@ -2494,6 +2494,8 @@ class SliceIndexNode(ExprNode):
elif base_type in (bytes_type, str_type, unicode_type, elif base_type in (bytes_type, str_type, unicode_type,
list_type, tuple_type): list_type, tuple_type):
return base_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 return py_object_type
def calculate_constant_result(self): def calculate_constant_result(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment