mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
chore(runtime-c-api) Fix a merging error.
This commit is contained in:
parent
2368ce3a20
commit
082c93ceba
@ -170,7 +170,7 @@ pub unsafe extern "C" fn wasmer_validate(
|
||||
if wasm_bytes.is_null() {
|
||||
return false;
|
||||
}
|
||||
let bytes: &[u8] = slice::from_raw_parts_mut(wasm_bytes, wasm_bytes_len as usize);
|
||||
let bytes: &[u8] = slice::from_raw_parts(wasm_bytes, wasm_bytes_len as usize);
|
||||
|
||||
wasmer_runtime_core::validate(bytes)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user