diff options
Diffstat (limited to 'externals')
-rw-r--r-- | externals/httplib/httplib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/httplib/httplib.h b/externals/httplib/httplib.h index a554b8619..e03842e6d 100644 --- a/externals/httplib/httplib.h +++ b/externals/httplib/httplib.h @@ -1545,7 +1545,7 @@ inline std::string get_remote_addr(socket_t sock) { std::array<char, NI_MAXHOST> ipstr{}; if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, - ipstr.data(), ipstr.size(), nullptr, 0, NI_NUMERICHOST)) { + ipstr.data(), static_cast<unsigned int>(ipstr.size()), nullptr, 0, NI_NUMERICHOST)) { return ipstr.data(); } } |