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
further codacy cleanups
[simgrid.git]
/
examples
/
msg
/
app-bittorrent
/
connection.c
diff --git
a/examples/msg/app-bittorrent/connection.c
b/examples/msg/app-bittorrent/connection.c
index
5548625
..
43140e6
100644
(file)
--- a/
examples/msg/app-bittorrent/connection.c
+++ b/
examples/msg/app-bittorrent/connection.c
@@
-40,5
+40,5
@@
void connection_free(void *data)
}
int connection_has_piece(connection_t connection, unsigned int piece){
- return
!!(connection->bitfield & 1
<<piece);
+ return
(connection->bitfield & 1U
<<piece);
}