Fix wasm_runtime_load argument type invalid issue (#1059)
Remove the `const` flag for the first argument `buf` of wasm_runtime_load as it might be modified by runtime for footprint and performance purpose, and update the related functions and document.
This commit is contained in:
@ -3578,7 +3578,7 @@ check_wasi_abi_compatibility(const WASMModule *module, bool main_module,
|
||||
#endif
|
||||
|
||||
WASMModule *
|
||||
wasm_loader_load(const uint8 *buf, uint32 size,
|
||||
wasm_loader_load(uint8 *buf, uint32 size,
|
||||
#if WASM_ENABLE_MULTI_MODULE != 0
|
||||
bool main_module,
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user