From abc40062b2be394ce007711be98e221167317aa1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 19 Nov 2015 10:17:18 +0200 Subject: [PATCH] Use a typecast to avoid a signedness mismatch warning --- source/net/unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/unix.cpp b/source/net/unix.cpp index 373b65a..cd1f414 100644 --- a/source/net/unix.cpp +++ b/source/net/unix.cpp @@ -26,7 +26,7 @@ UnixAddr::UnixAddr(const SysAddr &sa): throw logic_error("no unix sockets on windows"); #else const sockaddr_un &sau = reinterpret_cast(sa.addr); - if(sa.size>sizeof(sa_family_t)) + if(static_cast(sa.size)>sizeof(sa_family_t)) { abstract = (sau.sun_path[0]==0); path.assign(sau.sun_path+abstract, sa.size-sizeof(sa_family_t)-abstract); -- 2.45.2