From 57ab9c0e361843179171daa1a6071858ace99d8b Mon Sep 17 00:00:00 2001 From: Christof Petig Date: Mon, 7 Oct 2024 22:08:33 +0200 Subject: [PATCH] post merge fixes --- crates/moonbit/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/moonbit/src/lib.rs b/crates/moonbit/src/lib.rs index ec2946ee5..b89370a65 100644 --- a/crates/moonbit/src/lib.rs +++ b/crates/moonbit/src/lib.rs @@ -577,13 +577,13 @@ impl WorldGenerator for MoonBit { }} " ); - if self.return_area_size != 0 { + if !self.return_area_size.is_empty() { uwriteln!( &mut body, " let return_area : Int = {ffi_qualifier}malloc({}) ", - self.return_area_size, + self.return_area_size.size_wasm32(), ); } files.push(&format!("{EXPORT_DIR}/ffi.mbt"), indent(&body).as_bytes());