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