diff --git a/crypto/dleq/src/cross_group/scalar.rs b/crypto/dleq/src/cross_group/scalar.rs index 44343135..5a0a1dc2 100644 --- a/crypto/dleq/src/cross_group/scalar.rs +++ b/crypto/dleq/src/cross_group/scalar.rs @@ -35,7 +35,7 @@ pub fn scalar_normalize( res2 = res2.double(); let mut bit = u8::from(*raw_bit); - *raw_bit = 0; + *raw_bit = false; res1 += F0::from(bit.into()); res2 += F1::from(bit.into());