Ignore:
Timestamp:
Apr 5, 2011, 12:29:42 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4165 "crash on startup introduced in r12262" -- experimental commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r12309 r12310  
    5757}
    5858
    59 size_t
    60 tr_bitfieldCountTrueBits( const tr_bitfield * b )
    61 {
    62     assert( b->true_count == ( b->bit_count ? tr_bitfieldCountRange( b, 0, b->bit_count ) : countArray ( b ) ) );
    63     return b->true_count;
    64 }
    65 
    6659static size_t
    6760countRange( const tr_bitfield * b, size_t begin, size_t end )
     
    149142}
    150143
     144size_t
     145tr_bitfieldCountTrueBits( const tr_bitfield * b )
     146{
     147    tr_bitfieldIsValid( b );
     148    return b->true_count;
     149}
     150
    151151static size_t
    152152get_bytes_needed( size_t bit_count )
Note: See TracChangeset for help on using the changeset viewer.