diff --git a/gadgets/src/signed_integer/relational/eq.rs b/gadgets/src/signed_integer/relational/eq.rs index 0deb39d145..d783deb340 100644 --- a/gadgets/src/signed_integer/relational/eq.rs +++ b/gadgets/src/signed_integer/relational/eq.rs @@ -53,7 +53,8 @@ macro_rules! eq_gadget_impl { impl PartialEq for $gadget { fn eq(&self, other: &Self) -> bool { - !self.value.is_none() && !other.value.is_none() && self.value == other.value + // self.value == other.value means that other.value.is_some() too + self.value.is_some() && self.value == other.value } }