From 968f7164b283bc7f5e460f441ab4351d12880ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Sat, 25 Aug 2018 16:43:24 +0100 Subject: [PATCH] Fixed callvirt for boxed value types. --- source/Cosmos.IL2CPU/IL/Callvirt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Cosmos.IL2CPU/IL/Callvirt.cs b/source/Cosmos.IL2CPU/IL/Callvirt.cs index c390d3780..8b79414d7 100644 --- a/source/Cosmos.IL2CPU/IL/Callvirt.cs +++ b/source/Cosmos.IL2CPU/IL/Callvirt.cs @@ -166,7 +166,7 @@ public static void DoExecute(Assembler Assembler, _MethodInfo aMethod, MethodBas for (int i = 0; i < xThisOffset / 4; i++) { - XS.Push(ESP, displacement: -4); + XS.Push(ESP, displacement: -8); } if (xHasParams