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 34478b2 commit e995622Copy full SHA for e995622
1 file changed
Cython/Compiler/ExprNodes.py
@@ -9705,7 +9705,12 @@ class CoerceToTempNode(CoercionNode):
9705
9706
def __init__(self, arg, env):
9707
CoercionNode.__init__(self, arg)
9708
- self.type = self.arg.type
+ 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
9714
self.constant_result = self.arg.constant_result
9715
self.is_temp = 1
9716
if self.type.is_pyobject:
0 commit comments