mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
delay should work with longs
This commit is contained in:
parent
cec118c858
commit
35f7e672c6
@ -36,6 +36,6 @@ class delay(object):
|
|||||||
val -- a natural integer representing the desired delay
|
val -- a natural integer representing the desired delay
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not isinstance(val, int) or val < 0:
|
if not isinstance(val, (int, long)) or val < 0:
|
||||||
raise TypeError, _errmsg
|
raise TypeError, _errmsg
|
||||||
self._time = val
|
self._time = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user