Need to cast to avoid infinite recursion.

--HG--
extra : convert_revision : 1c2faba65e1112f0972bae330cbde4a563429b73
This commit is contained in:
Erik Hallnor 2003-10-15 17:36:10 -04:00
parent 11eaf2f2ab
commit 1f3f180b95

View file

@ -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>