diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 5827b8b77..cdbc83e44 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -377,6 +377,7 @@ std::string irc::sockets::cidr_mask::str() const case AF_INET6: base = (unsigned char*)&sa.in6.sin6_addr; len = 16; + break; case AF_UNIX: return sa.un.sun_path; @@ -388,7 +389,7 @@ std::string irc::sockets::cidr_mask::str() const } memcpy(base, bits, len); - return sa.addr() + "/" + ConvToStr(length); + return sa.addr() + "/" + ConvToStr((int)length); } bool irc::sockets::cidr_mask::operator==(const cidr_mask& other) const |