Changeset 14435


Ignore:
Timestamp:
Jan 4, 2015, 3:31:47 PM (6 years ago)
Author:
mikedld
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r14303 r14435  
    4646{
    4747  size_t ret = 0;
    48   ssize_t i = b->alloc_count;
    49 
    50   while (--i >= 0)
    51     ret += trueBitCount[b->bits[i]];
     48  size_t i = b->alloc_count;
     49
     50  while (i > 0)
     51    ret += trueBitCount[b->bits[--i]];
    5252
    5353  return ret;
Note: See TracChangeset for help on using the changeset viewer.