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:
parent
34fd26e5a8
commit
bdeb8c0805
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user