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:
f228cb7
)
fix type analysis bug
author
Robert Bradshaw
<robertwb@google.com>
Fri, 22 Feb 2013 00:17:48 +0000
(16:17 -0800)
committer
Robert Bradshaw
<robertwb@gmail.com>
Fri, 22 Feb 2013 09:00:42 +0000
(
01:00
-0800)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
3c30d92
..
7243b1c
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-7724,6
+7724,7
@@
class TypecastNode(ExprNode):
self.operand = CoerceIntToBytesNode(self.operand, env)
elif self.operand.type.can_coerce_to_pyobject(env):
self.result_ctype = py_object_type
+ base_type = self.base_type.analyse(env)
self.operand = self.operand.coerce_to(base_type, env)
else:
if self.operand.type.is_ptr: