wasm_module: fix bug in DataSection::load_into (for roc_wasm_interp)

This commit is contained in:
Brian Carroll 2022-12-02 09:13:44 +00:00
parent 735085b8df
commit 0970595238
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0

View file

@ -1537,6 +1537,7 @@ impl<'a> DataSection<'a> {
target_slice
.write(&self.bytes[cursor..][..len])
.map_err(|e| format!("{:?}", e))?;
cursor += len;
}
Ok(())
}