Skip to content

Commit 20f34c9

Browse files
committed
[fix] fix bug of computing CallingConvention of calli
1 parent 45749ff commit 20f34c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Editor/MethodBridge/Generator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private List<CalliMethodInfo> BuildCalliMethods(List<RawCalliMethodSignatureInfo
569569
sharedMethod.Init();
570570
sharedMethod = ToIsomorphicMethod(sharedMethod);
571571

572-
CallingConvention callingConv = (CallingConvention)(method.MethodSig.CallingConvention);
572+
CallingConvention callingConv = (CallingConvention)((int)method.MethodSig.CallingConvention + 1);
573573
string signature = MakeCalliSignature(sharedMethod, callingConv);
574574

575575
if (!methodsBySig.TryGetValue(signature, out var arm))

0 commit comments

Comments
 (0)