Skip to content
Snippets Groups Projects
Commit 9fbe1173 authored by Edric's avatar Edric
Browse files

Remove int/unsigned int comparison warning

parent 71b6998e
Branches
Tags
No related merge requests found
......@@ -69,7 +69,7 @@ struct Node {
Node(const InfoHash& id, const sockaddr* sa, socklen_t salen)
: id(id), ss(), sslen(salen) {
std::copy_n((const uint8_t*)sa, salen, (uint8_t*)&ss);
if (salen < sizeof(ss))
if ((unsigned)salen < sizeof(ss))
std::fill_n((uint8_t*)&ss+salen, sizeof(ss)-salen, 0);
}
InfoHash getId() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment