summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-10-31 11:24:10 -0400
committerMica White <botahamec@outlook.com>2026-10-31 11:24:10 -0400
commit9e4ac695d9a0888a7a987c86c1c1ebaa663b8939 (patch)
tree9c9701346d8b6b9a8aebc24a3297d0a257cb10af
parent0a209758a367fd87de4c5fc767dfe4dddae601ab (diff)
Fix match
-rw-r--r--crates/types/src/lib.rs10
1 files 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.