mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-09 07:21:29 +01:00
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:
@@ -175,7 +175,7 @@ macro_rules! make_uint {
|
|||||||
assert!($size <= 128);
|
assert!($size <= 128);
|
||||||
|
|
||||||
assert!(operands.len() >= 1);
|
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 {
|
if operands.len() == 1 {
|
||||||
return Ok(operands[0].clone());
|
return Ok(operands[0].clone());
|
||||||
|
|||||||
Reference in New Issue
Block a user