diff options
| -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) { | |||
| 1545 | std::array<char, NI_MAXHOST> ipstr{}; | 1545 | std::array<char, NI_MAXHOST> ipstr{}; |
| 1546 | 1546 | ||
| 1547 | if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, | 1547 | if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, |
| 1548 | ipstr.data(), ipstr.size(), nullptr, 0, NI_NUMERICHOST)) { | 1548 | ipstr.data(), static_cast<unsigned int>(ipstr.size()), nullptr, 0, NI_NUMERICHOST)) { |
| 1549 | return ipstr.data(); | 1549 | return ipstr.data(); |
| 1550 | } | 1550 | } |
| 1551 | } | 1551 | } |