We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9167910 commit fa49320Copy full SHA for fa49320
amaranth/hdl/_ast.py
@@ -73,7 +73,7 @@ def __init__(self, width=1, signed=False):
73
f"not {width}")
74
if signed and width <= 0:
75
raise TypeError(f"Width of a signed value must be a positive integer, not {width}")
76
- self._width = width
+ self._width = operator.index(width)
77
self._signed = bool(signed)
78
79
@property
0 commit comments