diff --git a/core/network/impl/synchronizer_impl.cpp b/core/network/impl/synchronizer_impl.cpp index dc8bef758e..236355c4d6 100644 --- a/core/network/impl/synchronizer_impl.cpp +++ b/core/network/impl/synchronizer_impl.cpp @@ -1224,9 +1224,9 @@ namespace kagome::network { selected_peers.push_back(p_id); } } else { - std::vector indices; + std::vector indices; indices.reserve(active_peers_size); - for (int i = 0; i < active_peers_size; ++i) { + for (uint32_t i = 0; i < active_peers_size; ++i) { indices.push_back(i); } std::random_device rd;