summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-11-20 23:45:45 -0500
committerNathan Binkert <binkertn@umich.edu>2005-11-20 23:45:45 -0500
commit3b8b8384176f3720846765805857c916b7724a8c (patch)
tree9307fd3d4eb863ef7450b7775600779a6aa1ffbd /python
parenta1023184126e79b14ceceb3fa7a93f6f4a21b10e (diff)
downloadgem5-3b8b8384176f3720846765805857c916b7724a8c.tar.xz
Allow long as a multiplier in the python config
python/m5/config.py: Allow long as a multiplier --HG-- extra : convert_revision : bdc45e9afc27bb7b0f2cd6aacf92758601b95ff8
Diffstat (limited to 'python')
-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 a93fdefeb..33e0a5be7 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -519,7 +519,7 @@ class BaseProxy(object):
# support multiplying proxies by constants
def __mul__(self, other):
- if not isinstance(other, (int, float)):
+ if not isinstance(other, (int, long, float)):
raise TypeError, "Proxy multiplier must be integer"
if self._multiplier == None:
self._multiplier = other