From 11371425f562f7202aff74004776489b93973af8 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Thu, 10 Mar 2022 10:46:21 -0600 Subject: "Change C-cast to static_cast in net_peerlist.h" Thanks @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r823870855 --- src/p2p/net_peerlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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::type& by_time_index = peerlist.get(); auto by_time_it = --by_time_index.end(); - std::advance(by_time_it, -((long long) n)); + std::advance(by_time_it, -static_cast(n)); return *by_time_it; } //-------------------------------------------------------------------------------------------------- -- cgit v1.2.3