Browse Source

fix loop bound (#20)

main
Srinath Setty 2 years ago
committed by GitHub
parent
commit
6797e1e042
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/r1cs.rs

+ 1
- 1
src/r1cs.rs

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

Loading…
Cancel
Save