* use sizesinttype instead of ptrsinttype to refer to vInstanceSize and

vInstanceSize2 in the VMT

git-svn-id: trunk@34623 -
This commit is contained in:
nickysn 2016-10-04 15:25:13 +00:00
parent 6eeb6ee95a
commit f62be8f6e6
2 changed files with 4 additions and 4 deletions

View File

@ -1134,8 +1134,8 @@ implementation
{ determine the size with symtable.datasize, because }
{ size gives back 4 for classes }
tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,ptrsinttype);
tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),ptrsinttype);
tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,sizesinttype);
tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),sizesinttype);
{$ifdef WITHDMT}
if _class.classtype=ct_object then
begin

View File

@ -859,8 +859,8 @@ implementation
odt_object:
begin
{ size, -size, parent vmt [, dmt ] (same names as for class) }
vmtdef.add_field_by_def('vInstanceSize',ptrsinttype);
vmtdef.add_field_by_def('vInstanceSize2',ptrsinttype);
vmtdef.add_field_by_def('vInstanceSize',sizesinttype);
vmtdef.add_field_by_def('vInstanceSize2',sizesinttype);
vmtdef.add_field_by_def('vParent',voidpointertype);
{$ifdef WITHDMT}
vmtdef.add_field_by_def('',voidpointertype);