From 937cb77a7fcbecb8cbd0fcca4fb9af1f6c9ac6a8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 12 Nov 2010 23:34:59 +0100 Subject: [PATCH] properly assign target type to new IntNode on coercion --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2