Browse Source

Fix error

master
ValarDragon 4 years ago
committed by Pratyush Mishra
parent
commit
cba74c09d9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      r1cs-std/src/fields/mod.rs

+ 2
- 2
r1cs-std/src/fields/mod.rs

@ -236,8 +236,8 @@ pub trait FieldGadget:
if found_one {
res.square_in_place(cs.ns(|| format!("square for bit {:?}", i)))?;
}
if !bit {
if bit {
found_one = true;
res.mul_in_place(cs.ns(|| format!("mul for bit {:?}", i)), self)?;
}

Loading…
Cancel
Save