diff options
author | Jeffrey <jeffryan@tamu.edu> | 2022-03-10 10:46:21 -0600 |
---|---|---|
committer | Jeffrey <jeffryan@tamu.edu> | 2022-04-18 09:55:21 -0500 |
commit | 11371425f562f7202aff74004776489b93973af8 (patch) | |
tree | 7067e3a6f538ba7bdb2434cedb414dd6063f3087 | |
parent | Change C-style-casts to static_cast in time_helper.h (diff) | |
download | monero-11371425f562f7202aff74004776489b93973af8.tar.xz |
"Change C-cast to static_cast in net_peerlist.h"
Thanks @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r823870855
-rw-r--r-- | src/p2p/net_peerlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_peerlist.h b/src/p2p/net_peerlist.h index 8a56bb378..dc480462d 100644 --- a/src/p2p/net_peerlist.h +++ b/src/p2p/net_peerlist.h @@ -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; } //-------------------------------------------------------------------------------------------------- |