summaryrefslogtreecommitdiff
path: root/python/m5/convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5/convert.py')
-rw-r--r--python/m5/convert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/m5/convert.py b/python/m5/convert.py
index 2ebe93889..2f69645b9 100644
--- a/python/m5/convert.py
+++ b/python/m5/convert.py
@@ -60,7 +60,7 @@ def toInteger(value):
elif value.endswith('f'):
result = int(value[:-1]) * femto
else:
- result = int(value)
+ result = int(float(value))
return result