Skip to content

Commit

Permalink
Merge pull request #831 from AntelopeIO/peering_signed_warning
Browse files Browse the repository at this point in the history
fix signed vs unsigned comparison warning in autobp peering
  • Loading branch information
spoonincode authored Mar 17, 2023
2 parents e3b31cd + 81ec613 commit 18e812a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ class bp_connection_manager {

flat_set<account_name> downstream_neighbors() const {
chain::flat_set<account_name> result;
for (int i = 0; i < proximity_count; ++i) { add_neighbors_with_distance(result, i + 1); }
for (std::size_t i = 0; i < proximity_count; ++i) { add_neighbors_with_distance(result, i + 1); }
return result;
}

void add_upstream_neighbors(chain::flat_set<account_name>& result) const {
for (int i = 0; i < proximity_count; ++i) { add_neighbors_with_distance(result, -1 - i); }
for (std::size_t i = 0; i < proximity_count; ++i) { add_neighbors_with_distance(result, -1 - i); }
}

flat_set<account_name> neighbors() const {
Expand Down

0 comments on commit 18e812a

Please sign in to comment.