Skip to content

Commit 69003c8

Browse files
tgoddenTom GoddenmmagicianPratyush
authored
Fix for add_many (issue #23) (#113)
Co-authored-by: Tom Godden <[email protected]> Co-authored-by: mmagician <[email protected]> Co-authored-by: Pratyush Mishra <[email protected]>
1 parent 4ea806f commit 69003c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bits/uint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ macro_rules! make_uint {
175175
assert!($size <= 128);
176176

177177
assert!(operands.len() >= 1);
178-
assert!($size * operands.len() <= F::MODULUS_BIT_SIZE as usize);
178+
assert!($size + ark_std::log2(operands.len()) <= F::MODULUS_BIT_SIZE);
179179

180180
if operands.len() == 1 {
181181
return Ok(operands[0].clone());

0 commit comments

Comments
 (0)