Browse Source

Add new additive and multiplcative ops for fields

master
Pratyush Mishra 4 years ago
parent
commit
bd501440cf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      r1cs-std/src/test_constraint_system.rs

+ 2
- 2
r1cs-std/src/test_constraint_system.rs

@ -37,8 +37,8 @@ impl TestConstraintSystem {
Index::Aux(index) => aux[index].0, Index::Aux(index) => aux[index].0,
}; };
tmp.mul_assign(&coeff);
acc.add_assign(&tmp);
tmp *= coeff;
acc += tmp;
} }
acc acc

Loading…
Cancel
Save