Skip to content

Commit

Permalink
Fixed a warning "comparison of integer expressions of different signe…
Browse files Browse the repository at this point in the history
…dness"
  • Loading branch information
Pavel Yurin committed Jun 26, 2024
1 parent e0400a5 commit b2d0b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raft_server.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ bool raft_server::check_leadership_validity() {
min_quorum_size);

const auto nr_peers_list = get_not_responding_peers();
assert(nr_peers_list.size() == nr_peers);
assert(nr_peers_list.size() == static_cast<std::size_t>(nr_peers));
for (auto& peer : nr_peers_list) {
if (peer->is_lost()) {
continue;
Expand Down

0 comments on commit b2d0b07

Please sign in to comment.