mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-09 23:41:33 +01:00
fix: fix wrong constant case detection in three_bit_cond_neg_lookup
This commit is contained in:
committed by
Pratyush Mishra
parent
e5ac1f44cb
commit
e5ec2e66d3
@@ -979,7 +979,7 @@ impl<F: PrimeField> ThreeBitCondNegLookupGadget<F> for FpVar<F> {
|
|||||||
debug_assert_eq!(b.len(), 3);
|
debug_assert_eq!(b.len(), 3);
|
||||||
debug_assert_eq!(c.len(), 4);
|
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
|
// We only have constants
|
||||||
|
|
||||||
let lsb = usize::from(b[0].value()?);
|
let lsb = usize::from(b[0].value()?);
|
||||||
|
|||||||
Reference in New Issue
Block a user