Don't need flog of negative integers

This commit is contained in:
Marc 2014-12-02 00:07:34 +13:00
parent 2fef5a4822
commit 2195f44005

View File

@ -201,7 +201,7 @@ void rand_block()
}
/* quick floor log2(n) */
int flog2(int n)
int flog2(unsigned int n)
{
int k = 0;
while (n)