chore(runtime-c-api) Fix a merging error.

This commit is contained in:
Ivan Enderlin 2019-03-15 12:01:02 +01:00
parent 2368ce3a20
commit 082c93ceba

View File

@ -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)
}