mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk libT) #2800 "crashing during operation" -- use type correctness suggestion from kim wrt int --> size_t in bitset.h
This commit is contained in:
@@ -30,7 +30,7 @@ typedef struct tr_bitset
|
||||
tr_bitset;
|
||||
|
||||
static inline void
|
||||
tr_bitsetConstructor( tr_bitset * b, int size )
|
||||
tr_bitsetConstructor( tr_bitset * b, size_t size )
|
||||
{
|
||||
tr_bitfieldConstruct( &b->bitfield, size );
|
||||
}
|
||||
@@ -119,7 +119,7 @@ tr_bitsetSetHaveNone( tr_bitset * b )
|
||||
}
|
||||
|
||||
static inline int
|
||||
tr_bitsetAdd( tr_bitset * b, int i )
|
||||
tr_bitsetAdd( tr_bitset * b, size_t i )
|
||||
{
|
||||
int ret = 0;
|
||||
if( !b->haveAll ) {
|
||||
|
||||
Reference in New Issue
Block a user