1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

Solved edge inference bug

This commit is contained in:
Jan Decaluwe 2010-06-20 14:56:25 +02:00
parent 34fd26e5a8
commit bdeb8c0805

View File

@ -918,6 +918,8 @@ class _AnalyzeVisitor(ast.NodeVisitor, _ConversionMixin):
def visit_Num(self, node):
node.signed = False
n = node.n
# assign to value attribute for backwards compatibility
node.value = n
if n in (0, 1):
node.obj = bool(n)
elif isinstance(n, int):