Skip to content

Commit

Permalink
Update definition of wasmtime_func_call_unchecked. (#245)
Browse files Browse the repository at this point in the history
* Update definition of wasmtime_func_call_unchecked.
See bytecodealliance/wasmtime#6262

Fixes #244

* Empty commit to retrigger CI.
  • Loading branch information
kpreisser authored May 3, 2023
1 parent 2b5cccd commit e9b3f84
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e9b3f84

Please sign in to comment.