mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-14 14:45:40 +00:00
5b98ee732c
This patch updates the first argument of `wasmer_validate` from `*mut uint8_t` to `*const uint8_t`. Indeed, the `wasmer-runtime-core::validate` function doesn't expect a mutable slice, so it's not required to expect a mutable array from C. Also, it's likely for the Wasm bytes to be stored in the `wasmer_byte_array` structure. The first field `bytes` is defined as `*const uint8_t`. So this patch avoids a cast when writing a C++ program. |
||
---|---|---|
.. | ||
lib.rs |