Changeset 6599


Ignore:
Timestamp:
Aug 20, 2008, 4:19:47 PM (13 years ago)
Author:
muks
Message:

Use signed integers for storing the random values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r6598 r6599  
    551551    tr_priority_t priority;
    552552    int missingBlockCount;
    553     uint16_t random;
     553    int random;
    554554    uint32_t piece;
    555555    uint32_t peerCount;
     
    622622            setme->priority = inf->pieces[piece].priority;
    623623            setme->peerCount = 0;
    624             setme->random = tr_stupidRandInt( UINT16_MAX );
     624            setme->random = tr_stupidRandInt( INT_MAX );
    625625            setme->missingBlockCount = tr_cpMissingBlocksInPiece( tor->completion, piece );
    626626
Note: See TracChangeset for help on using the changeset viewer.