[fix] fix error of computing CallingConvention in MethodBridge/Generator::BuildCalliMethods
parent
213a11ff25
commit
31be818bb6
|
|
@ -638,7 +638,7 @@ namespace HybridCLR.Editor.MethodBridge
|
||||||
sharedMethod.Init();
|
sharedMethod.Init();
|
||||||
sharedMethod = ToIsomorphicMethod(sharedMethod);
|
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);
|
string signature = MakeCalliSignature(sharedMethod, callingConv);
|
||||||
|
|
||||||
if (!methodsBySig.TryGetValue(signature, out var arm))
|
if (!methodsBySig.TryGetValue(signature, out var arm))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue