Commit 937cb77a authored by Stefan Behnel's avatar Stefan Behnel

properly assign target type to new IntNode on coercion

parent 95bbf503
...@@ -845,7 +845,7 @@ class IntNode(ConstNode): ...@@ -845,7 +845,7 @@ class IntNode(ConstNode):
return FloatNode(self.pos, value=self.value, type=dst_type, return FloatNode(self.pos, value=self.value, type=dst_type,
constant_result=not_a_constant) constant_result=not_a_constant)
node = IntNode(self.pos, value=self.value, constant_result=self.constant_result, 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: if dst_type.is_numeric and not dst_type.is_complex:
return node return node
if dst_type.is_pyobject: if dst_type.is_pyobject:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment