Skip to content

Commit

Permalink
fix: remove cast to usize
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Oct 6, 2023
1 parent b2764c6 commit a45d485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs-dkr/src/add_party_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<E: Curve, H: Digest + Clone, const M: usize> JoinMessage<E, H, M> {

#[allow(clippy::needless_range_loop)]
for i in 0..new_n as usize {
for j in 1..refresh_messages.len() as usize {
for j in 1..refresh_messages.len() {
pk_vec[i] = pk_vec[i].clone()
+ refresh_messages[j].points_committed_vec[i].clone()
* li_vec[j].clone();
Expand Down
2 changes: 1 addition & 1 deletion fs-dkr/src/refresh_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ impl<E: Curve, H: Digest + Clone, const M: usize> RefreshMessage<E, H, M> {
refresh_messages[0].points_committed_vec[i].clone()
* li_vec[0].clone(),
);
for j in 1..refresh_messages.len() as usize {
for j in 1..refresh_messages.len() {
local_key.pk_vec[i] = local_key.pk_vec[i].clone()
+ refresh_messages[j].points_committed_vec[i].clone()
* li_vec[j].clone();
Expand Down

0 comments on commit a45d485

Please sign in to comment.