Skip to content

Commit

Permalink
[value_ref] fix uint256 comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
FlameFactory committed Oct 28, 2023
1 parent b82b1a7 commit 1d83ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/value_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<'a> PartialEq for ValueRef<'a> {
(ValueRef::UInt32(a), ValueRef::UInt32(b)) => *a == *b,
(ValueRef::UInt64(a), ValueRef::UInt64(b)) => *a == *b,
(ValueRef::UInt128(a), ValueRef::UInt128(b)) => *a == *b,
(ValueRef::UInt256(a), ValueRef::UInt256(b)) => *a == *b,
(ValueRef::UInt256(a), ValueRef::UInt256(b)) => a.into_words() == b.into_words(),
(ValueRef::Int8(a), ValueRef::Int8(b)) => *a == *b,
(ValueRef::Int16(a), ValueRef::Int16(b)) => *a == *b,
(ValueRef::Int32(a), ValueRef::Int32(b)) => *a == *b,
Expand Down

0 comments on commit 1d83ac6

Please sign in to comment.