From: Stefan Behnel Date: Fri, 12 Nov 2010 22:34:59 +0000 (+0100) Subject: properly assign target type to new IntNode on coercion X-Git-Tag: 0.14.alpha0~159 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=937cb77a7fcbecb8cbd0fcca4fb9af1f6c9ac6a8;p=cython.git properly assign target type to new IntNode on coercion --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 6bf24f94..0358604c 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -845,7 +845,7 @@ class IntNode(ConstNode): return FloatNode(self.pos, value=self.value, type=dst_type, constant_result=not_a_constant) node = IntNode(self.pos, value=self.value, constant_result=self.constant_result, - unsigned=self.unsigned, longness=self.longness) + type = dst_type, unsigned=self.unsigned, longness=self.longness) if dst_type.is_numeric and not dst_type.is_complex: return node if dst_type.is_pyobject: