A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
codacy
[simgrid.git]
/
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
04bb2e4
..
659a4aa
100644
(file)
--- 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++)
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;
}
return i;
return -1;
}