From 9e4ac695d9a0888a7a987c86c1c1ebaa663b8939 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 31 Oct 2026 11:24:10 -0400 Subject: Fix match --- crates/types/src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index a3f26f2..468aec5 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -447,8 +447,8 @@ impl ValueLane { impl From<&WasmType> for ValueLane { fn from(ty: &WasmType) -> Self { match ty { - WasmType::I32 | WasmType::F32 | WasmType::Ref(_) => Self::S32, - WasmType::I64 | WasmType::F64 => Self::S64, + WasmType::U32 | WasmType::I32 | WasmType::F32 | WasmType::Ref(_) => Self::S32, + WasmType::U64 | WasmType::I64 | WasmType::F64 => Self::S64, WasmType::V128 => Self::S128, } } @@ -657,7 +657,11 @@ impl MemoryType { #[inline] pub const fn page_size(&self) -> u64 { - if let Some(page_size) = self.page_size { page_size } else { MEM_PAGE_SIZE } + if let Some(page_size) = self.page_size { + page_size + } else { + MEM_PAGE_SIZE + } } /// Set a different memory architecture. -- cgit v1.3.1