Skip to content
Snippets Groups Projects
Commit cd487b07 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ip_utils: fix warning

Change-Id: Ida774d4151ce0d8207c8669d7f136dfaed006955
parent e6894cea
Branches
Tags
No related merge requests found
......@@ -92,7 +92,7 @@ public:
IpAddr(const pj_sockaddr& ip, socklen_t len)
: addr()
{
if (len > sizeof(addr))
if (len > static_cast<socklen_t>(sizeof(addr)))
throw std::invalid_argument("IpAddr(): length overflows internal storage type");
memcpy(&addr, &ip, len);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment