From 694127a875ac0f2fb0e8ab5f27126a011672ddbc Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 30 Mar 2017 22:51:39 -0400 Subject: [PATCH] fix build (#1874) fix build --- examples/client_test.cpp | 3 ++- include/libtorrent/settings_pack.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index a03359bad..36785c81b 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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(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); diff --git a/include/libtorrent/settings_pack.hpp b/include/libtorrent/settings_pack.hpp index 252b4219c..8e87b4ec4 100644 --- a/include/libtorrent/settings_pack.hpp +++ b/include/libtorrent/settings_pack.hpp @@ -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,