Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64d22b6 commit c3c2401Copy full SHA for c3c2401
1 file changed
Cython/Compiler/ExprNodes.py
@@ -9705,12 +9705,7 @@ class CoerceToTempNode(CoercionNode):
9705
9706
def __init__(self, arg, env):
9707
CoercionNode.__init__(self, arg)
9708
- temp_type = self.arg.type
9709
- if temp_type.is_array:
9710
- temp_type = PyrexTypes.c_ptr_type(temp_type.base_type)
9711
- elif temp_type.is_cfunction:
9712
- temp_type = PyrexTypes.c_ptr_type(temp_type)
9713
- self.type = temp_type
+ self.type = self.arg.type
9714
self.constant_result = self.arg.constant_result
9715
self.is_temp = 1
9716
if self.type.is_pyobject:
0 commit comments