diff options
| -rw-r--r-- | crates/types/src/lib.rs | 10 |
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. |
