summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>