Skip to content

Commit e9b3f84

Browse files
authored
Update definition of wasmtime_func_call_unchecked. (#245)
* Update definition of wasmtime_func_call_unchecked. See bytecodealliance/wasmtime#6262 Fixes #244 * Empty commit to retrigger CI.
1 parent 2b5cccd commit e9b3f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Function.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private unsafe IntPtr Invoke(Span<ValueRaw> argumentsAndResults, StoreContext st
416416
IntPtr trap;
417417
fixed (ValueRaw* argsAndResultsPtr = argumentsAndResults)
418418
{
419-
error = Native.wasmtime_func_call_unchecked(storeContext.handle, func, argsAndResultsPtr, out trap);
419+
error = Native.wasmtime_func_call_unchecked(storeContext.handle, func, argsAndResultsPtr, (nuint)argumentsAndResults.Length, out trap);
420420

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

720720
[DllImport(Engine.LibraryName)]
721-
public static unsafe extern IntPtr wasmtime_func_call_unchecked(IntPtr context, in ExternFunc func, ValueRaw* args_and_results, out IntPtr trap);
721+
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);
722722

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

0 commit comments

Comments
 (0)