Browse Source

* 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 11 years ago
parent
commit
116d3746ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/i8086/cgcpu.pas

+ 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