From 89e9fac562222870f8b39dda8eb3c65959ebb5aa Mon Sep 17 00:00:00 2001 From: nickysn Date: Sat, 3 May 2014 17:05:50 +0000 Subject: [PATCH] * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far data memory models git-svn-id: trunk@27728 - --- compiler/nobj.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/nobj.pas b/compiler/nobj.pas index f95529805b..205891eb17 100644 --- a/compiler/nobj.pas +++ b/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;