From: Nathan Binkert Date: Mon, 21 Nov 2005 04:45:45 +0000 (-0500) Subject: Allow long as a multiplier in the python config X-Git-Tag: m5_2.0_beta1~289 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b8b8384176f3720846765805857c916b7724a8c;p=gem5.git Allow long as a multiplier in the python config python/m5/config.py: Allow long as a multiplier --HG-- extra : convert_revision : bdc45e9afc27bb7b0f2cd6aacf92758601b95ff8 --- 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