allow conversion floats -> long so that 100e9 and such work as Ticks
--HG-- extra : convert_revision : 23511baca6153bb3aa9c57be8818ad1b65f02a71
This commit is contained in:
parent
f0ee50c32f
commit
cb929af345
1 changed files with 1 additions and 1 deletions
|
@ -936,7 +936,7 @@ class CheckedInt(NumericParamValue):
|
|||
def __init__(self, value):
|
||||
if isinstance(value, str):
|
||||
self.value = toInteger(value)
|
||||
elif isinstance(value, (int, long)):
|
||||
elif isinstance(value, (int, long, float)):
|
||||
self.value = long(value)
|
||||
self._check()
|
||||
|
||||
|
|
Loading…
Reference in a new issue