[fix] fix error of computing CallingConvention in MethodBridge/Generator::BuildCalliMethods

main
walon 2025-04-30 15:30:03 +08:00
parent 213a11ff25
commit 31be818bb6
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ namespace HybridCLR.Editor.MethodBridge
sharedMethod.Init();
sharedMethod = ToIsomorphicMethod(sharedMethod);
CallingConvention callingConv = (CallingConvention)((int)method.MethodSig.CallingConvention + 1);
CallingConvention callingConv = (CallingConvention)((int)(method.MethodSig.CallingConvention & dnlib.DotNet.CallingConvention.Mask) + 1);
string signature = MakeCalliSignature(sharedMethod, callingConv);
if (!methodsBySig.TryGetValue(signature, out var arm))