Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update definition of wasmtime_func_call_unchecked. #245

Merged
merged 2 commits into from
May 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ private unsafe IntPtr Invoke(Span<ValueRaw> argumentsAndResults, StoreContext st
IntPtr trap;
fixed (ValueRaw* argsAndResultsPtr = argumentsAndResults)
{
error = Native.wasmtime_func_call_unchecked(storeContext.handle, func, argsAndResultsPtr, out trap);
error = Native.wasmtime_func_call_unchecked(storeContext.handle, func, argsAndResultsPtr, (nuint)argumentsAndResults.Length, out trap);

// See comments above for the two reasons why the `Store` must be kept alive here.
GC.KeepAlive(store);
Expand Down Expand Up @@ -718,7 +718,7 @@ internal static class Native
public static unsafe extern IntPtr wasmtime_func_call(IntPtr context, in ExternFunc func, Value* args, nuint nargs, Value* results, nuint nresults, out IntPtr trap);

[DllImport(Engine.LibraryName)]
public static unsafe extern IntPtr wasmtime_func_call_unchecked(IntPtr context, in ExternFunc func, ValueRaw* args_and_results, out IntPtr trap);
public static unsafe extern IntPtr wasmtime_func_call_unchecked(IntPtr context, in ExternFunc func, ValueRaw* args_and_results, nuint args_and_results_len, out IntPtr trap);

[DllImport(Engine.LibraryName)]
public static extern IntPtr wasmtime_func_type(IntPtr context, in ExternFunc func);
Expand Down