From bd501440cf1d265a30f2c5d541e18cd66337ec2b Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Fri, 14 Feb 2020 13:08:44 -0800 Subject: [PATCH] Add new additive and multiplcative ops for fields --- r1cs-std/src/test_constraint_system.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r1cs-std/src/test_constraint_system.rs b/r1cs-std/src/test_constraint_system.rs index 3fb955f..765df33 100644 --- a/r1cs-std/src/test_constraint_system.rs +++ b/r1cs-std/src/test_constraint_system.rs @@ -37,8 +37,8 @@ impl TestConstraintSystem { Index::Aux(index) => aux[index].0, }; - tmp.mul_assign(&coeff); - acc.add_assign(&tmp); + tmp *= coeff; + acc += tmp; } acc