arnaucube
arnaucube/NovaPublic Self-hosted repository
fix loop bound (#20)

Srinath Setty srinath@microsoft.com
Fri, 01 Apr 2022 13:58:54 -0700
commit

6797e1e04205ff7ca0d2ad7d7d84520e8e3c27f9

parent

2919fe4e789e4e46c838f2e72343e33b4a5ae84c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/r1cs.rs → src/r1cs.rs

@@ -83,7 +83,7 @@ num_vars: usize,

num_io: usize, M: &[(usize, usize, G::Scalar)]| -> Result<(), NovaError> { - let res = (0..num_cons) + let res = (0..M.len()) .map(|i| { let (row, col, _val) = M[i]; if row >= num_cons || col > num_io + num_vars {