mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 08:31:29 +01:00
fix loop bound (#20)
This commit is contained in:
@@ -83,7 +83,7 @@ impl<G: Group> R1CSShape<G> {
|
|||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user