Skip to content

Commit

Permalink
Cast usize to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
yamdan committed Aug 15, 2023
1 parent 7b27936 commit 8acb1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbs_plus/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ macro_rules! impl_sig_params {
let mut h = cfg_into_iter!((0..=message_count))
.map(|i| {
projective_group_elem_from_try_and_incr::<E::$group_affine, D>(
&concat_slices![label, b" : h_", (i as u64).to_le_bytes()],
&concat_slices![label, b" : h_", (i as u32).to_le_bytes()],
)
})
.collect::<Vec<E::$group_projective>>();
Expand Down Expand Up @@ -529,7 +529,7 @@ impl<E: Pairing> SignatureParams23G1<E> {
projective_group_elem_from_try_and_incr::<E::G1Affine, D>(&concat_slices![
label,
b" : h_",
(i as u64).to_le_bytes()
(i as u32).to_le_bytes()
])
})
.collect::<Vec<E::G1>>();
Expand Down

0 comments on commit 8acb1f9

Please sign in to comment.