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