Prechádzať zdrojové kódy

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

git-svn-id: trunk@27728 -

nickysn 11 rokov pred
rodič
commit
89e9fac562
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      compiler/nobj.pas

+ 2 - 2
compiler/nobj.pas

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