Skip to content

Commit

Permalink
post merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Oct 7, 2024
1 parent ad27e9c commit 57ab9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/moonbit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 57ab9c0

Please sign in to comment.