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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user