From e883fdc5c9b24352a298579bcc57e4e8a279977c Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 16 Feb 2012 13:06:34 +0100 Subject: [PATCH] Adjust ILSpy to NRefactory API changes. --- ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs | 8 ++++---- ILSpy/Properties/app.config.template | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs b/ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs index d396af93b..8b3adddb8 100644 --- a/ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs +++ b/ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs @@ -533,10 +533,10 @@ namespace ICSharpCode.Decompiler.Ast } return arg1; } - case ILCode.Conv_Ovf_I: return arg1.CastTo(typeof(IntPtr)); // TODO - case ILCode.Conv_Ovf_U: return arg1.CastTo(typeof(UIntPtr)); - case ILCode.Conv_Ovf_I_Un: return arg1.CastTo(typeof(IntPtr)); - case ILCode.Conv_Ovf_U_Un: return arg1.CastTo(typeof(UIntPtr)); + case ILCode.Conv_Ovf_I: return arg1.CastTo(new SimpleType("IntPtr")); // TODO + case ILCode.Conv_Ovf_U: return arg1.CastTo(new SimpleType("UIntPtr")); + case ILCode.Conv_Ovf_I_Un: return arg1.CastTo(new SimpleType("IntPtr")); + case ILCode.Conv_Ovf_U_Un: return arg1.CastTo(new SimpleType("UIntPtr")); case ILCode.Castclass: return arg1.CastTo(operandAsTypeRef); case ILCode.Unbox_Any: // unboxing does not require a cast if the argument was an isinst instruction diff --git a/ILSpy/Properties/app.config.template b/ILSpy/Properties/app.config.template index c8c1f21c7..259ff0be9 100644 --- a/ILSpy/Properties/app.config.template +++ b/ILSpy/Properties/app.config.template @@ -6,7 +6,7 @@ - + @@ -17,15 +17,15 @@ - + - + - +