Skip to content

Commit

Permalink
fix: fix wrong constant case detection in three_bit_cond_neg_lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
kobigurk authored and Pratyush committed Oct 30, 2020
1 parent e5ac1f4 commit e5ec2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/fp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?);
Expand Down

0 comments on commit e5ec2e6

Please sign in to comment.