From 3b8b8384176f3720846765805857c916b7724a8c Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 20 Nov 2005 23:45:45 -0500 Subject: [PATCH] Allow long as a multiplier in the python config python/m5/config.py: Allow long as a multiplier --HG-- extra : convert_revision : bdc45e9afc27bb7b0f2cd6aacf92758601b95ff8 --- python/m5/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2