diff --git a/circuit_passes/src/bucket_interpreter/value.rs b/circuit_passes/src/bucket_interpreter/value.rs index 0c09c160..c310c414 100644 --- a/circuit_passes/src/bucket_interpreter/value.rs +++ b/circuit_passes/src/bucket_interpreter/value.rs @@ -319,7 +319,7 @@ pub fn complement(v: &Value, field: &BigInt) -> Result { match v { Unknown => Ok(Unknown), KnownU32(n) => Ok(KnownU32(!(*n))), - KnownBigInt(n) => Ok(KnownBigInt(modular_arithmetic::complement_256(n, field))), + KnownBigInt(n) => Ok(KnownBigInt(modular_arithmetic::complement_254(n, field))), } }