Procházet zdrojové kódy

* TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far
data memory models

git-svn-id: trunk@27728 -

nickysn před 11 roky
rodič
revize
89e9fac562
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      compiler/nobj.pas

+ 2 - 2
compiler/nobj.pas

@@ -769,9 +769,9 @@ implementation
                 { allocate a pointer in the object memory }
                 with tObjectSymtable(_class.symtable) do
                   begin
-                    datasize:=align(datasize,sizeof(pint));
+                    datasize:=align(datasize,voidpointertype.alignment);
                     ImplIntf.Ioffset:=datasize;
-                    datasize:=datasize+sizeof(pint);
+                    datasize:=datasize+voidpointertype.size;
                   end;
               end;
           end;