Browse Source
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>
master
Tom Godden
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/bits/uint.rs
|
|
@ -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());
|
|
|
|