Allow long as a multiplier in the python config

python/m5/config.py:
    Allow long as a multiplier

--HG--
extra : convert_revision : bdc45e9afc27bb7b0f2cd6aacf92758601b95ff8
This commit is contained in:
Nathan Binkert
2005-11-20 23:45:45 -05:00
parent a102318412
commit 3b8b838417

View File

@@ -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