Commit 621117ee authored by gsamain's avatar gsamain

Change checks for assigning cypclass to name node

parent 84b6aae6
......@@ -2373,9 +2373,9 @@ class NameNode(AtomicExprNode):
if is_external_ref:
code.put_giveref(rhs.py_result())
elif self.type.is_cyp_class:
code.put_cyxdecref(self.result())
if isinstance(rhs, NameNode):
if self.use_managed_ref:
rhs.make_owned_reference(code)
code.put_cyxdecref(self.result())
if not self.type.is_memoryviewslice:
if not assigned:
if overloaded_assignment:
......
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