fixed another shorten-64-to-32 warning in netlink code

This commit is contained in:
Alden Torres 2017-07-03 11:55:22 -04:00 committed by Arvid Norberg
parent ec2fb91aa5
commit 285daa21a5
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ namespace libtorrent {namespace {
int nl_dump_request(int sock, std::uint16_t type, std::uint32_t seq, char family, span<char> msg, std::size_t msg_len)
{
nlmsghdr* nl_msg = reinterpret_cast<nlmsghdr*>(msg.data());
nl_msg->nlmsg_len = NLMSG_LENGTH(msg_len);
nl_msg->nlmsg_len = std::uint32_t(NLMSG_LENGTH(msg_len));
nl_msg->nlmsg_type = type;
nl_msg->nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST;
nl_msg->nlmsg_seq = seq;