arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
fix: fix wrong constant case detection in three_bit_cond_neg_lookup
Kobi Gurkan kobigurk@gmail.com
Fri, 30 Oct 2020 23:37:27 +0200
commit

e5ec2e66d3aead34f7e3fa15909f22e1600bd11d

parent

e5ac1f44cbecbb145326483b66c720727eb5ba4f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/fields/fp/mod.rs → src/fields/fp/mod.rs

@@ -979,7 +979,7 @@ ) -> Result<Self, SynthesisError> {

debug_assert_eq!(b.len(), 3); debug_assert_eq!(c.len(), 4); - if !b.cs().or(b0b1.cs()).is_none() { + if b.cs().or(b0b1.cs()).is_none() { // We only have constants let lsb = usize::from(b[0].value()?);