Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3c2401

Browse files
committed
backed out temp type adaptation changes to use type.as_argument_type() instead
1 parent 64d22b6 commit c3c2401

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Cython/Compiler/ExprNodes.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9705,12 +9705,7 @@ class CoerceToTempNode(CoercionNode):
97059705

97069706
def __init__(self, arg, env):
97079707
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
9708+
self.type = self.arg.type
97149709
self.constant_result = self.arg.constant_result
97159710
self.is_temp = 1
97169711
if self.type.is_pyobject:

0 commit comments

Comments
 (0)