Skip to content

Commit

Permalink
Fix nuget pipeline (microsoft#17110)
Browse files Browse the repository at this point in the history
Fix nuget pipeline by correcting the calling convention on c# delegate.

---------

Co-authored-by: Randy Shuai <[email protected]>
  • Loading branch information
RandySheriffH and RandyShuai authored Aug 14, 2023
1 parent e55e1b7 commit f71b694
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ private static void OrtCallback(IntPtr userData, IntPtr[] ouputs, uint numOutput
}
}

[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate void OrtCallbackDelegate(IntPtr userData, IntPtr[] outputs, uint numOutputs, IntPtr status);

private static OrtCallbackDelegate ortCallback = new OrtCallbackDelegate(OrtCallback);
Expand Down

0 comments on commit f71b694

Please sign in to comment.