Don't need flog of negative integers
This commit is contained in:
parent
2fef5a4822
commit
2195f44005
|
@ -201,7 +201,7 @@ void rand_block()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* quick floor log2(n) */
|
/* quick floor log2(n) */
|
||||||
int flog2(int n)
|
int flog2(unsigned int n)
|
||||||
{
|
{
|
||||||
int k = 0;
|
int k = 0;
|
||||||
while (n)
|
while (n)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user