From ea5db5846bc700f0da912225ddcb4be372359044 Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 7 Oct 2024 20:45:14 -0400 Subject: Finish basic windowing stuff --- scripts/Cargo.toml | 2 +- scripts/src/wasm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/Cargo.toml b/scripts/Cargo.toml index a9fe5e4..8854678 100644 --- a/scripts/Cargo.toml +++ b/scripts/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -wasmtime = "15" +wasmtime = "24" rayon = "1" thiserror = "1" rand = "0.8" diff --git a/scripts/src/wasm.rs b/scripts/src/wasm.rs index 06d840f..7f8f0b5 100644 --- a/scripts/src/wasm.rs +++ b/scripts/src/wasm.rs @@ -72,7 +72,7 @@ fn validate_module(module: &Module) -> Result<(), InvalidWasmScript> { let Some(heap_base) = export.global() else { return Err(InvalidWasmScript::HeapBaseIsNotGlobal); }; - if *heap_base.content() != ValType::I32 { + if heap_base.content().matches(&ValType::I32) { return Err(InvalidWasmScript::HeapBaseMustBeI32); } if heap_base.mutability() != Mutability::Const { -- cgit v1.2.3