From 4921a34616d39b2cf0bd0fe6ad1267cfbd1fb7ba Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 9 Nov 2012 20:17:57 +0100 Subject: [PATCH] pytholite/compiler: fix handling of constants --- 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 eebe2479..11669946 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -229,7 +229,7 @@ class _Compiler: return r def visit_expr_num(self, node): - return node.n + return Constant(node.n) # like list.index, but using "is" instead of comparison def _index_is(l, x): -- 2.30.2