From e7e5bb887e31652feeea230a9c5889f15136cc84 Mon Sep 17 00:00:00 2001 From: Kouji Matsui Date: Sat, 21 Jan 2023 11:50:26 +0900 Subject: [PATCH] Removed MaxStackSize setter. --- Mono.Cecil.Cil/CodeReader.cs | 2 +- Mono.Cecil.Cil/MethodBody.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Mono.Cecil.Cil/CodeReader.cs b/Mono.Cecil.Cil/CodeReader.cs index 89515d688..1e241857d 100644 --- a/Mono.Cecil.Cil/CodeReader.cs +++ b/Mono.Cecil.Cil/CodeReader.cs @@ -92,7 +92,7 @@ void ReadMethodBody () switch (flags & 0x3) { case 0x2: // tiny body.code_size = flags >> 2; - body.MaxStackSize = 8; + body.max_stack_size = 8; ReadCode (); break; case 0x3: // fat diff --git a/Mono.Cecil.Cil/MethodBody.cs b/Mono.Cecil.Cil/MethodBody.cs index 89bfc905c..96a24005b 100644 --- a/Mono.Cecil.Cil/MethodBody.cs +++ b/Mono.Cecil.Cil/MethodBody.cs @@ -35,7 +35,6 @@ public MethodDefinition Method { public int MaxStackSize { get { return max_stack_size; } - set { max_stack_size = value; } } public int CodeSize {