Use backward compatible variable initializers
This commit is contained in:
parent
7025b8cd32
commit
9571262535
|
@ -107,13 +107,17 @@ static int ntz(uint32_t x)
|
||||||
// returns n if no set bits.
|
// returns n if no set bits.
|
||||||
uint32_t bitvector_next(uint32_t *b, uint64_t n0, uint64_t n)
|
uint32_t bitvector_next(uint32_t *b, uint64_t n0, uint64_t n)
|
||||||
{
|
{
|
||||||
|
uint32_t i;
|
||||||
|
uint32_t nb;
|
||||||
|
uint32_t nw;
|
||||||
|
uint32_t w;
|
||||||
|
|
||||||
if (n0 >= n)
|
if (n0 >= n)
|
||||||
return n;
|
return n;
|
||||||
|
|
||||||
uint32_t i = n0 >> 5;
|
i = n0 >> 5;
|
||||||
uint32_t nb = n0 & 31;
|
nb = n0 & 31;
|
||||||
uint32_t nw = (n + 31) >> 5;
|
nw = (n + 31) >> 5;
|
||||||
uint32_t w;
|
|
||||||
|
|
||||||
if (i < nw - 1 || (n & 31) == 0)
|
if (i < nw - 1 || (n & 31) == 0)
|
||||||
w = b[i] >> nb;
|
w = b[i] >> nb;
|
||||||
|
|
Loading…
Reference in New Issue