summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Clinkenbeard <brianclinkenbeard@users.noreply.github.com>2020-02-20 01:16:49 +0100
committerGitHub <noreply@github.com>2020-02-20 01:16:49 +0100
commitd31156931dccf00fba15c789185796fd3f8dc006 (patch)
tree5992c9d741e0e7439e6fc5ffd55e3dbe5a7e4ca5
parenthttplib compatibility (diff)
downloadyuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.gz
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.bz2
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.lz
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.xz
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.tar.zst
yuzu-d31156931dccf00fba15c789185796fd3f8dc006.zip
-rw-r--r--externals/httplib/httplib.h2
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();
}
}