mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
wasm_module: fix bug in DataSection::load_into (for roc_wasm_interp)
This commit is contained in:
parent
735085b8df
commit
0970595238
1 changed files with 1 additions and 0 deletions
|
@ -1537,6 +1537,7 @@ impl<'a> DataSection<'a> {
|
|||
target_slice
|
||||
.write(&self.bytes[cursor..][..len])
|
||||
.map_err(|e| format!("{:?}", e))?;
|
||||
cursor += len;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue