fix loop bound (#20)

This commit is contained in:
Srinath Setty
2022-04-01 13:58:54 -07:00
committed by GitHub
parent 2919fe4e78
commit 6797e1e042

View File

@@ -83,7 +83,7 @@ impl<G: Group> R1CSShape<G> {
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 {