From 336846c538b1fa5e57967baefb397d098a054d62 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 18 Dec 2008 10:00:56 +0100 Subject: [PATCH] ... and through type casts --- Cython/Compiler/ExprNodes.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2