Skip to content

Commit

Permalink
Merge pull request #103 from dnWalker-project/fix/conv_i
Browse files Browse the repository at this point in the history
CONV_I converts the value on the of the stack to native int
  • Loading branch information
kfrajtak authored Nov 17, 2024
2 parents 15f004e + e9237dc commit 6fd53d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dnWalker/Instructions/Instructions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6fd53d1

Please sign in to comment.