mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
"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:
parent
175b4117a9
commit
11371425f5
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ namespace nodetool
|
||||||
// Is not thread-safe nor does it check bounds. Do this before calling. Indexing starts at 0.
|
// 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>();
|
peers_indexed::index<by_time>::type& by_time_index = peerlist.get<by_time>();
|
||||||
auto by_time_it = --by_time_index.end();
|
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;
|
return *by_time_it;
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue