Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
EPE-1708 Use tie for comparision for key_weight
Browse files Browse the repository at this point in the history
  • Loading branch information
zma committed Nov 26, 2021
1 parent bf43662 commit 6726e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/authority.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct key_weight {
}

friend bool operator < ( const key_weight& lhs, const key_weight& rhs ) {
return lhs.key < rhs.key;
return tie( lhs.key, lhs.weight ) < tie( rhs.key, rhs.weight );
}
};

Expand Down

0 comments on commit 6726e4c

Please sign in to comment.