1
0
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:
jand 2007-11-23 12:06:45 +00:00
parent cec118c858
commit 35f7e672c6

View File

@ -36,6 +36,6 @@ class delay(object):
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
self._time = val