diff options
author | Steve Raasch <sraasch@umich.edu> | 2003-11-06 12:57:06 -0500 |
---|---|---|
committer | Steve Raasch <sraasch@umich.edu> | 2003-11-06 12:57:06 -0500 |
commit | 9915bd17c2bf8dec79efcd4d50f890c174cbc477 (patch) | |
tree | f34264384734cbff9e42e527bab00c1e10a0c413 /base | |
parent | 07d56ae7becde051c23911706ebd58647e3b8ef6 (diff) | |
download | gem5-9915bd17c2bf8dec79efcd4d50f890c174cbc477.tar.xz |
Nat's fix for compile bug
base/statistics.hh:
Too many "const"'s
--HG--
extra : convert_revision : b38303f2e6b415e6bcc520da80e89d99b6976d23
Diffstat (limited to 'base')
-rw-r--r-- | base/statistics.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/statistics.hh b/base/statistics.hh index f6c421fb5..28c380602 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2280,7 +2280,7 @@ struct StatBin : public GenBin enum { binned = true }; Bin() { allocate(sizeof(Storage)); } bool initialized() const { return true; } - void init(const Params ¶ms) { } + void init(Params ¶ms) { } int size() const { return 1; } @@ -2320,7 +2320,7 @@ struct StatBin : public GenBin VectorBin() : _size(0) {} bool initialized() const { return _size > 0; } - void init(int s, const Params ¶ms) { + void init(int s, Params ¶ms) { assert(!initialized()); assert(s > 0); _size = s; @@ -2379,7 +2379,7 @@ struct NoBin } bool initialized() const { return true; } - void init(const Params ¶ms) { + void init(Params ¶ms) { new (ptr) Storage(params); } int size() const{ return 1; } @@ -2420,7 +2420,7 @@ struct NoBin } bool initialized() const { return ptr != NULL; } - void init(int s, const Params ¶ms) { + void init(int s, Params ¶ms) { assert(s > 0 && "size must be positive!"); assert(!initialized()); _size = s; |