1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Don't use ssize_t in bitfield.c (cleaner w/o it anyway)

This commit is contained in:
Mike Gelfand 2015-01-04 15:31:47 +00:00
parent 068bccd46b
commit 295eade2a6

View file

@ -45,10 +45,10 @@ static size_t
countArray (const tr_bitfield * b)
{
size_t ret = 0;
ssize_t i = b->alloc_count;
size_t i = b->alloc_count;
while (--i >= 0)
ret += trueBitCount[b->bits[i]];
while (i > 0)
ret += trueBitCount[b->bits[--i]];
return ret;
}