projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a102318
)
Allow long as a multiplier in the python config
author
Nathan Binkert
<binkertn@umich.edu>
Mon, 21 Nov 2005 04:45:45 +0000
(23:45 -0500)
committer
Nathan 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
patch
|
blob
|
history
diff --git
a/python/m5/config.py
b/python/m5/config.py
index a93fdefebc28cdce0fa3487833078b70454f689b..33e0a5be7b8ac5485efe9de486d4562916c0696b 100644
(file)
--- 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