diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 866b276bc..9355db7f8 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -549,7 +549,7 @@ compareRefillPiece (const void * aIn, const void * bIn) return a->peerCount < b->peerCount ? -1 : 1; /* otherwise go with our random seed */ - return tr_compareUint16( a->random, b->random ); + return a->random - b->random; } static int