Fix for add_many (issue #23) (#113)

Co-authored-by: Tom Godden <tgodden@vub.be>
Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
This commit is contained in:
Tom Godden
2023-01-20 02:01:05 +01:00
committed by GitHub
parent 4ea806f172
commit 69003c80d4

View File

@@ -175,7 +175,7 @@ macro_rules! make_uint {
assert!($size <= 128);
assert!(operands.len() >= 1);
assert!($size * operands.len() <= F::MODULUS_BIT_SIZE as usize);
assert!($size + ark_std::log2(operands.len()) <= F::MODULUS_BIT_SIZE);
if operands.len() == 1 {
return Ok(operands[0].clone());