Ignore:
Timestamp:
Nov 25, 2009, 4:12:55 AM (12 years ago)
Author:
charles
Message:

(trunk libT) more work on magnet links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r9559 r9562  
    163163               const tr_bitfield * b )
    164164{
    165     uint8_t *      ait;
    166     const uint8_t *aend, *bit;
    167 
    168     assert( a->byteCount == b->byteCount );
    169 
    170     for( ait = a->bits, bit = b->bits, aend = ait + a->byteCount;
    171          ait != aend; )
     165    uint8_t * ait;
     166    const uint8_t *aend, *bit, *bend;
     167
     168    for( ait = a->bits, aend = ait + a->byteCount,
     169         bit = b->bits, bend = bit + b->byteCount;
     170         ait != aend && bit != bend; )
     171    {
    172172        *ait++ |= *bit++;
     173    }
    173174
    174175    return a;
Note: See TracChangeset for help on using the changeset viewer.