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

sockaddr: fix warning

parent ad549098
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ public:
* Build from existing address.
*/
SockAddr(const sockaddr* sa, socklen_t length) {
if (length > sizeof(sockaddr_storage))
if (length > static_cast<socklen_t>(sizeof(sockaddr_storage)))
throw std::runtime_error("Socket address length is too large");
set(sa, length);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment