From e9237dcfe2257fafe7d6ff8ab7461b79520eb777 Mon Sep 17 00:00:00 2001 From: Karel Frajtak Date: Sat, 16 Nov 2024 15:12:39 +0100 Subject: [PATCH] CONV_I converts the value on the of the stack to native int, i.e. IntPtr --- dnWalker/Instructions/Instructions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnWalker/Instructions/Instructions.cs b/dnWalker/Instructions/Instructions.cs index 2d6b87c..95a1b19 100644 --- a/dnWalker/Instructions/Instructions.cs +++ b/dnWalker/Instructions/Instructions.cs @@ -3294,8 +3294,7 @@ protected override IIEReturnValue ExecuteCore(ExplicitActiveState cur) { IDataElement popped = cur.EvalStack.Pop(); INumericElement a = (popped is IManagedPointer) ? (popped as IManagedPointer).ToInt4() : (INumericElement)popped; - - cur.EvalStack.Push(a.ToInt4(false)); + cur.EvalStack.Push(DataElement.CreateDataElement((IntPtr)a.ToInt8(false).Value, cur.DefinitionProvider)); return nextRetval; } }