You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasmer_export_func_call in wasmer.hh reports "params ptr is null", even if params_len is 0. Seems like it should just ignore the params pointer if params_len is 0.
Currently I'm working around the issue like this:
std::vector<wasmer_value_t> params;
// Marshall params...
if (params.size() == 0) {
// Wasmer requires that our params ptr is valid, even if params_len is 0.
params.push_back(ToValueI32(0));
}
wasmer_value_t ret;
ThrowIfFailed(wasmer_export_func_call(
fn->fn, ¶ms[0], fn->wasm_args.size(), &ret, fn->has_ret ? 1 : 0)));
The text was updated successfully, but these errors were encountered:
wasmer_export_func_call in wasmer.hh reports "params ptr is null", even if params_len is 0. Seems like it should just ignore the params pointer if params_len is 0.
Currently I'm working around the issue like this:
The text was updated successfully, but these errors were encountered: