"Change C-cast to static_cast in net_peerlist.h"

Thanks @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r823870855
pull/470/head
Jeffrey 2 years ago
parent 175b4117a9
commit 11371425f5

@ -221,7 +221,7 @@ namespace nodetool
// Is not thread-safe nor does it check bounds. Do this before calling. Indexing starts at 0.
peers_indexed::index<by_time>::type& by_time_index = peerlist.get<by_time>();
auto by_time_it = --by_time_index.end();
std::advance(by_time_it, -((long long) n));
std::advance(by_time_it, -static_cast<long long>(n));
return *by_time_it;
}
//--------------------------------------------------------------------------------------------------

Loading…
Cancel
Save