X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/055cc7ebc4ef9ad41d6b9fd84ee8bc8616f19a7a..8579400ae5e0389b237a2b52e9ea62bebbe1f4d9:/examples/s4u/app-bittorrent/s4u_peer.cpp diff --git a/examples/s4u/app-bittorrent/s4u_peer.cpp b/examples/s4u/app-bittorrent/s4u_peer.cpp index 04bb2e4074..659a4aa4e3 100644 --- a/examples/s4u/app-bittorrent/s4u_peer.cpp +++ b/examples/s4u/app-bittorrent/s4u_peer.cpp @@ -657,7 +657,7 @@ bool Peer::hasCompletedPiece(unsigned int piece) int Peer::getFirstMissingBlockFrom(int piece) { for (unsigned int i = 0; i < PIECES_BLOCKS; i++) - if (!(bitfield_blocks & 1ULL << (piece * PIECES_BLOCKS + i))) + if (not(bitfield_blocks & 1ULL << (piece * PIECES_BLOCKS + i))) return i; return -1; }