aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/p2p/net_peerlist.h2
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;
}
//--------------------------------------------------------------------------------------------------