fix: fix wrong constant case detection in three_bit_cond_neg_lookup

This commit is contained in:
Kobi Gurkan
2020-10-30 23:37:27 +02:00
committed by Pratyush Mishra
parent e5ac1f44cb
commit e5ec2e66d3

View File

@@ -979,7 +979,7 @@ impl<F: PrimeField> ThreeBitCondNegLookupGadget<F> for FpVar<F> {
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()?);