Commit c3c2401c authored by Stefan Behnel's avatar Stefan Behnel

backed out temp type adaptation changes to use type.as_argument_type() instead

parent 64d22b6f
...@@ -9705,12 +9705,7 @@ class CoerceToTempNode(CoercionNode): ...@@ -9705,12 +9705,7 @@ class CoerceToTempNode(CoercionNode):
def __init__(self, arg, env): def __init__(self, arg, env):
CoercionNode.__init__(self, arg) CoercionNode.__init__(self, arg)
temp_type = self.arg.type self.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.constant_result = self.arg.constant_result
self.is_temp = 1 self.is_temp = 1
if self.type.is_pyobject: 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