mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +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
|
target_slice
|
||||||
.write(&self.bytes[cursor..][..len])
|
.write(&self.bytes[cursor..][..len])
|
||||||
.map_err(|e| format!("{:?}", e))?;
|
.map_err(|e| format!("{:?}", e))?;
|
||||||
|
cursor += len;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue