Skip to content

Commit d2e074c

Browse files
silly windows
1 parent 9b174ca commit d2e074c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/network/sock_t.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ namespace util {
5858
const int result = ::getnameinfo(reinterpret_cast<const sockaddr*>(&storage),
5959
size(),
6060
host.data(),
61-
host.size(),
61+
static_cast<socklen_t>(host.size()),
6262
service.data(),
63-
service.size(),
63+
static_cast<socklen_t>(service.size()),
6464
NI_NUMERICSERV | (numeric_host ? NI_NUMERICHOST : 0));
6565
if (result != 0) {
6666
throw std::system_error(

0 commit comments

Comments
 (0)