From d31156931dccf00fba15c789185796fd3f8dc006 Mon Sep 17 00:00:00 2001 From: Brian Clinkenbeard Date: Wed, 19 Feb 2020 16:16:49 -0800 Subject: fix issue with windows getnameinfo() --- externals/httplib/httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'externals') 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 ipstr{}; if (!getnameinfo(reinterpret_cast(&addr), len, - ipstr.data(), ipstr.size(), nullptr, 0, NI_NUMERICHOST)) { + ipstr.data(), static_cast(ipstr.size()), nullptr, 0, NI_NUMERICHOST)) { return ipstr.data(); } } -- cgit v1.2.3