Commit e9956226 authored by Stefan Behnel's avatar Stefan Behnel

when creating temps for C arrays and C functions, use to their respective pointer type

parent 34478b2a
......@@ -9705,7 +9705,12 @@ class CoerceToTempNode(CoercionNode):
def __init__(self, arg, env):
CoercionNode.__init__(self, arg)
self.type = self.arg.type
temp_type = self.arg.type
if temp_type.is_array:
temp_type = PyrexTypes.c_ptr_type(temp_type.base_type)
elif temp_type.is_cfunction:
temp_type = PyrexTypes.c_ptr_type(temp_type)
self.type = temp_type
self.constant_result = self.arg.constant_result
self.is_temp = 1
if self.type.is_pyobject:
......
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