Allow long as a multiplier in the python config
authorNathan Binkert <binkertn@umich.edu>
Mon, 21 Nov 2005 04:45:45 +0000 (23:45 -0500)
committerNathan Binkert <binkertn@umich.edu>
Mon, 21 Nov 2005 04:45:45 +0000 (23:45 -0500)
python/m5/config.py:
    Allow long as a multiplier

--HG--
extra : convert_revision : bdc45e9afc27bb7b0f2cd6aacf92758601b95ff8

python/m5/config.py

index a93fdefebc28cdce0fa3487833078b70454f689b..33e0a5be7b8ac5485efe9de486d4562916c0696b 100644 (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