projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d22b6
)
backed out temp type adaptation changes to use type.as_argument_type() instead
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 18 Nov 2012 05:57:58 +0000
(06:57 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 18 Nov 2012 05:57:58 +0000
(06:57 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
6dd13af
..
ef8b800
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-9705,12
+9705,7
@@
class CoerceToTempNode(CoercionNode):
def __init__(self, arg, env):
CoercionNode.__init__(self, arg)
- 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.type = self.arg.type
self.constant_result = self.arg.constant_result
self.is_temp = 1
if self.type.is_pyobject: