Need to cast to avoid infinite recursion.
--HG-- extra : convert_revision : 1c2faba65e1112f0972bae330cbde4a563429b73
This commit is contained in:
parent
11eaf2f2ab
commit
1f3f180b95
1 changed files with 2 additions and 2 deletions
|
@ -109,14 +109,14 @@ inline int
|
||||||
FloorLog2(int32_t x)
|
FloorLog2(int32_t x)
|
||||||
{
|
{
|
||||||
assert(x > 0);
|
assert(x > 0);
|
||||||
return FloorLog2(x);
|
return FloorLog2((uint32_t)x);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
inline int
|
||||||
FloorLog2(int64_t x)
|
FloorLog2(int64_t x)
|
||||||
{
|
{
|
||||||
assert(x > 0);
|
assert(x > 0);
|
||||||
return FloorLog2(x);
|
return FloorLog2((uint64_t)x);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|
Loading…
Reference in a new issue