mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-16 12:43:11 +00:00
fix
This commit is contained in:
parent
1c71fb3407
commit
54eb29e707
@ -170,8 +170,8 @@ pub(crate) fn mem_vec_to_biguint(x: &[U256]) -> BigUint {
|
||||
pub(crate) fn biguint_to_le_limbs(x: BigUint) -> Vec<u128> {
|
||||
let mut digits = x.to_u32_digits();
|
||||
|
||||
// Pad to a multiple of 8.
|
||||
digits.resize((digits.len() + 7) / 8 * 8, 0);
|
||||
// Pad to a multiple of 4.
|
||||
digits.resize((digits.len() + 3) / 4 * 4, 0);
|
||||
|
||||
digits
|
||||
.chunks(4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user