summaryrefslogtreecommitdiff
path: root/python/m5/config.py
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2005-11-02 15:37:47 -0500
committerAli Saidi <saidi@eecs.umich.edu>2005-11-02 15:37:47 -0500
commitcb929af3452acbd7672fd8949bf025878b1e2450 (patch)
treed670fd0acd51cc191695c62a282bcd5bb55e0401 /python/m5/config.py
parentf0ee50c32fbd7383032cd8d5bc62e002c27f59ef (diff)
downloadgem5-cb929af3452acbd7672fd8949bf025878b1e2450.tar.xz
allow conversion floats -> long so that 100e9 and such work as Ticks
--HG-- extra : convert_revision : 23511baca6153bb3aa9c57be8818ad1b65f02a71
Diffstat (limited to 'python/m5/config.py')
-rw-r--r--python/m5/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index e1970e672..a93fdefeb 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -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()