Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
used unsigned long long to have more than 50 bits
[simgrid.git] / examples / msg / app-bittorrent / peer.h
index cca374b9aa082e92d8bc2a93772194a48180ed81..4c28fc37a19d460759a196824e21e0e16e1253bd 100644 (file)
@@ -18,7 +18,7 @@ typedef struct s_peer {
   int id;                       //peer id
 
   unsigned int bitfield;        //list of pieces the peer has.
-  unsigned long bitfield_blocks; //list of blocks the peer has.
+  unsigned long long bitfield_blocks; //list of blocks the peer has.
   short *pieces_count;          //number of peers that have each piece.
 
   unsigned int current_pieces;   //current pieces the peer is downloading