Commit 719cc3fc authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Robert Bradshaw

fix type analysis bug

parent f228cb7b
......@@ -7724,6 +7724,7 @@ class TypecastNode(ExprNode):
self.operand = CoerceIntToBytesNode(self.operand, env)
elif self.operand.type.can_coerce_to_pyobject(env):
self.result_ctype = py_object_type
base_type = self.base_type.analyse(env)
self.operand = self.operand.coerce_to(base_type, env)
else:
if self.operand.type.is_ptr:
......
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