projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11eaf2f
)
Need to cast to avoid infinite recursion.
author
Erik Hallnor
<ehallnor@umich.edu>
Wed, 15 Oct 2003 21:36:10 +0000
(17:36 -0400)
committer
Erik Hallnor
<ehallnor@umich.edu>
Wed, 15 Oct 2003 21:36:10 +0000
(17:36 -0400)
--HG--
extra : convert_revision :
1c2faba65e1112f0972bae330cbde4a563429b73
base/intmath.hh
patch
|
blob
|
history
diff --git
a/base/intmath.hh
b/base/intmath.hh
index 7f017a9014a1d90d92aa7e7961f7feadf53d2177..77f63fe8d9c2bdc75173085bdffddefebfe8997f 100644
(file)
--- a/
base/intmath.hh
+++ b/
base/intmath.hh
@@
-109,14
+109,14
@@
inline int
FloorLog2(int32_t x)
{
assert(x > 0);
- return FloorLog2(x);
+ return FloorLog2(
(uint32_t)
x);
}
inline int
FloorLog2(int64_t x)
{
assert(x > 0);
- return FloorLog2(x);
+ return FloorLog2(
(uint64_t)
x);
}
template <class T>