From: Stefan Behnel Date: Thu, 18 Dec 2008 09:00:56 +0000 (+0100) Subject: ... and through type casts X-Git-Tag: 0.11-beta~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=336846c538b1fa5e57967baefb397d098a054d62;p=cython.git ... and through type casts --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index d9c4f9b8..8e14914d 100644 --- 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