From dfa11d11c36753138ca169752d5f35d403e1ee01 Mon Sep 17 00:00:00 2001 From: walon Date: Thu, 24 Aug 2023 19:36:00 +0800 Subject: [PATCH] =?UTF-8?q?[change]=20object=E5=8F=8A=E6=8C=87=E9=92=88?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E7=AD=BE=E5=90=8D=E7=94=B1i?= =?UTF-8?q?=E6=94=B9=E4=B8=BAu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/ABI/TypeCreator.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Editor/ABI/TypeCreator.cs b/Editor/ABI/TypeCreator.cs index 0d0f642..28bf54a 100644 --- a/Editor/ABI/TypeCreator.cs +++ b/Editor/ABI/TypeCreator.cs @@ -31,7 +31,7 @@ namespace HybridCLR.Editor.ABI type = type.RemovePinnedAndModifiers(); if (type.IsByRef) { - return TypeInfo.s_i; + return TypeInfo.s_u; } switch (type.ElementType) { @@ -48,8 +48,8 @@ namespace HybridCLR.Editor.ABI case ElementType.U8: return TypeInfo.s_u8; case ElementType.R4: return TypeInfo.s_r4; case ElementType.R8: return TypeInfo.s_r8; - case ElementType.U: return TypeInfo.s_u; - case ElementType.I: + case ElementType.I: return TypeInfo.s_i; + case ElementType.U: case ElementType.String: case ElementType.Ptr: case ElementType.ByRef: @@ -61,7 +61,7 @@ namespace HybridCLR.Editor.ABI case ElementType.Module: case ElementType.Var: case ElementType.MVar: - return TypeInfo.s_i; + return TypeInfo.s_u; case ElementType.TypedByRef: return TypeInfo.s_typedByRef; case ElementType.ValueType: { @@ -81,7 +81,7 @@ namespace HybridCLR.Editor.ABI GenericInstSig gis = (GenericInstSig)type; if (!gis.GenericType.IsValueType) { - return TypeInfo.s_i; + return TypeInfo.s_u; } TypeDef typeDef = gis.GenericType.ToTypeDefOrRef().ResolveTypeDef(); if (typeDef.IsEnum)