We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b174ca commit d2e074cCopy full SHA for d2e074c
src/util/network/sock_t.hpp
@@ -58,9 +58,9 @@ namespace util {
58
const int result = ::getnameinfo(reinterpret_cast<const sockaddr*>(&storage),
59
size(),
60
host.data(),
61
- host.size(),
+ static_cast<socklen_t>(host.size()),
62
service.data(),
63
- service.size(),
+ static_cast<socklen_t>(service.size()),
64
NI_NUMERICSERV | (numeric_host ? NI_NUMERICHOST : 0));
65
if (result != 0) {
66
throw std::system_error(
0 commit comments