summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-18 14:52:19 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-18 14:52:19 +0100
commitbe396125fe5a3643a91caa35a228ec0390ae1d5f (patch)
tree76d033f4372cdda00f51e0484d3f0d368e5e960c /crates/types/src
parentd466d376c2b08fd60599cfb0697c7cb3dd327207 (diff)
chore: fix a couple of failing tests
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-rw-r--r--crates/types/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs
index 63f0133..1eef0a5 100644
--- a/crates/types/src/lib.rs
+++ b/crates/types/src/lib.rs
@@ -124,6 +124,8 @@ impl WasmValue {
match (self, other) {
(Self::I32(a), Self::I32(b)) => a == b,
(Self::I64(a), Self::I64(b)) => a == b,
+ (Self::RefNull(ty), Self::RefNull(ty2)) => ty == ty2,
+ (Self::RefExtern(addr), Self::RefExtern(addr2)) => addr == addr2,
(Self::F32(a), Self::F32(b)) => {
if a.is_nan() && b.is_nan() {
true // Both are NaN, treat them as equal