Skip to content

Commit

Permalink
correct len
Browse files Browse the repository at this point in the history
  • Loading branch information
Achim Schneider committed Mar 19, 2023
1 parent eef4c77 commit b85de86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/arkworks/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ where
T: CanonicalDeserialize + Sized,
{
let mut cursor = Cursor::new(bytes.to_vec());
let length = u32::deserialize_uncompressed_unchecked(cursor.clone())?;
let length = bytes.len() / 8;
let mut result = Vec::with_capacity(length as usize);
for _ in 0..length {
result.push(T::deserialize_uncompressed_unchecked(&mut cursor)?);
Expand Down

0 comments on commit b85de86

Please sign in to comment.