2
0
Эх сурвалжийг харах

* fixed the stack offset to the self parameter when generating an interface
wrapper for a virtual method in tcg8086.g_intf_wrapper

git-svn-id: trunk@25816 -

nickysn 12 жил өмнө
parent
commit
116d3746ca

+ 1 - 1
compiler/i8086/cgcpu.pas

@@ -1792,7 +1792,7 @@ unit cgcpu;
             list.concat(taicpu.op_reg(A_PUSH,S_W,NR_BX)); { allocate space for address}
             list.concat(taicpu.op_reg(A_PUSH,S_W,NR_BX));
             list.concat(taicpu.op_reg(A_PUSH,S_W,NR_DI));
-            getselftobx(8);
+            getselftobx(6);
             loadvmttobx;
             loadmethodoffstobx;
             { set target address