From d152684804a35761de51bc541f7379bcdf330b9c Mon Sep 17 00:00:00 2001 From: Oscar Spencer Date: Thu, 9 May 2024 08:38:45 -0500 Subject: [PATCH] fix s32 bindgen --- crates/grain/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/grain/src/lib.rs b/crates/grain/src/lib.rs index 838812a3c..532f8c7cb 100644 --- a/crates/grain/src/lib.rs +++ b/crates/grain/src/lib.rs @@ -1912,7 +1912,7 @@ impl Bindgen for FunctionBindgen<'_, '_> { } Instruction::I32FromS32 => { results.push(format!( - "WasmI32.load(WasmI32.fromGrain({}), 8n)", + "WasmI32.load(WasmI32.fromGrain({}), 4n)", operands[0] )); }