projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e71d4
)
... and through type casts
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 18 Dec 2008 09:00:56 +0000
(10:00 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 18 Dec 2008 09:00:56 +0000
(10:00 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index d9c4f9b886f90922b360a2960cf63f3091e860b7..8e14914d95167a49f473aa29d2f4bbddb8388f57 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-3825,6
+3825,9
@@
class TypecastNode(NewTempExprNode):
def check_const(self):
self.operand.check_const()
+
+ def calculate_constant_result(self):
+ self.constant_result = self.operand.constant_result
def calculate_result_code(self):
opnd = self.operand