From 47f5fc70e48ba0ed9745cdb728c6ee723172e992 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 19 Dec 2012 16:21:57 +0100 Subject: [PATCH] pytholite: fix bug with constant assignment to register --- migen/pytholite/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/pytholite/compiler.py b/migen/pytholite/compiler.py index 2d437bc17..1faf1e108 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -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":