fix build
This commit is contained in:
Arvid Norberg 2017-03-30 22:51:39 -04:00 committed by GitHub
parent d720b282b8
commit 694127a875
2 changed files with 3 additions and 2 deletions

View File

@ -1229,7 +1229,8 @@ MAGNETURL is a magnet link
{
ip_filter pcf;
pcf.add_rule(address_v4::from_string("0.0.0.0")
, address_v4::from_string("255.255.255.255"), 1 << lt::session::global_peer_class_id);
, address_v4::from_string("255.255.255.255")
, 1 << static_cast<std::uint32_t>(lt::session::global_peer_class_id));
#if TORRENT_USE_IPV6
pcf.add_rule(address_v6::from_string("::")
, address_v6::from_string("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"), 1);

View File

@ -1290,7 +1290,7 @@ namespace libtorrent
// limited.
//
// A value of 0 means unlimited.
//
//
// For fine grained control over rate limits, including making them apply
// to local peers, see peer-classes_.
upload_rate_limit,