... and through type casts
authorStefan Behnel <scoder@users.berlios.de>
Thu, 18 Dec 2008 09:00:56 +0000 (10:00 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 18 Dec 2008 09:00:56 +0000 (10:00 +0100)
Cython/Compiler/ExprNodes.py

index d9c4f9b886f90922b360a2960cf63f3091e860b7..8e14914d95167a49f473aa29d2f4bbddb8388f57 100644 (file)
@@ -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