We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 213a11f commit 31be818Copy full SHA for 31be818
1 file changed
Editor/MethodBridge/Generator.cs
@@ -638,7 +638,7 @@ private List<CalliMethodInfo> BuildCalliMethods(List<CallNativeMethodSignatureIn
638
sharedMethod.Init();
639
sharedMethod = ToIsomorphicMethod(sharedMethod);
640
641
- CallingConvention callingConv = (CallingConvention)((int)method.MethodSig.CallingConvention + 1);
+ CallingConvention callingConv = (CallingConvention)((int)(method.MethodSig.CallingConvention & dnlib.DotNet.CallingConvention.Mask) + 1);
642
string signature = MakeCalliSignature(sharedMethod, callingConv);
643
644
if (!methodsBySig.TryGetValue(signature, out var arm))
0 commit comments