summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Hallnor <ehallnor@umich.edu>2003-10-15 17:36:10 -0400
committerErik Hallnor <ehallnor@umich.edu>2003-10-15 17:36:10 -0400
commit1f3f180b950abd58764a2a12ace34aa048449c55 (patch)
tree1448bc6ed09f83d3861eab954db10917440cd92f
parent11eaf2f2ab5b01868c696830f015b014a5c57580 (diff)
downloadgem5-1f3f180b950abd58764a2a12ace34aa048449c55.tar.xz
Need to cast to avoid infinite recursion.
--HG-- extra : convert_revision : 1c2faba65e1112f0972bae330cbde4a563429b73
-rw-r--r--base/intmath.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/intmath.hh b/base/intmath.hh
index 7f017a901..77f63fe8d 100644
--- 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>