pytholite: fix bug with constant assignment to register
This commit is contained in:
parent
9c65402fda
commit
47f5fc70e4
|
@ -70,7 +70,7 @@ class _Compiler:
|
|||
return self.visit_assign_special(sa, node, statements)
|
||||
else:
|
||||
value = self.ec.visit_expr(node.value)
|
||||
if isinstance(value, Value):
|
||||
if isinstance(value, (int, bool, Value)):
|
||||
r = []
|
||||
for target in node.targets:
|
||||
if isinstance(target, ast.Attribute) and target.attr == "store":
|
||||
|
|
Loading…
Reference in New Issue