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

Thanks @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r823870855
This commit is contained in:
Jeffrey 2022-03-10 10:46:21 -06:00
parent 175b4117a9
commit 11371425f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
//--------------------------------------------------------------------------------------------------