From 20f34c9b140ab788987b5922a48829d68f564f76 Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 3 Jan 2025 12:23:04 +0800 Subject: [PATCH] [fix] fix bug of computing CallingConvention of calli --- Editor/MethodBridge/Generator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/MethodBridge/Generator.cs b/Editor/MethodBridge/Generator.cs index b2fccce..f5eb201 100644 --- a/Editor/MethodBridge/Generator.cs +++ b/Editor/MethodBridge/Generator.cs @@ -569,7 +569,7 @@ namespace HybridCLR.Editor.MethodBridge sharedMethod.Init(); sharedMethod = ToIsomorphicMethod(sharedMethod); - CallingConvention callingConv = (CallingConvention)(method.MethodSig.CallingConvention); + CallingConvention callingConv = (CallingConvention)((int)method.MethodSig.CallingConvention + 1); string signature = MakeCalliSignature(sharedMethod, callingConv); if (!methodsBySig.TryGetValue(signature, out var arm))