From: Sebastien Bourdeauducq Date: Fri, 9 Nov 2012 19:17:57 +0000 (+0100) Subject: pytholite/compiler: fix handling of constants X-Git-Tag: 24jan2021_ls180~2099^2~806 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4921a34616d39b2cf0bd0fe6ad1267cfbd1fb7ba;p=litex.git pytholite/compiler: fix handling of constants --- 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):