mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-18 16:58:37 +02:00
* use sizesinttype instead of ptrsinttype to refer to vInstanceSize and
vInstanceSize2 in the VMT git-svn-id: trunk@34623 -
This commit is contained in:
parent
6eeb6ee95a
commit
f62be8f6e6
@ -1134,8 +1134,8 @@ implementation
|
|||||||
|
|
||||||
{ determine the size with symtable.datasize, because }
|
{ determine the size with symtable.datasize, because }
|
||||||
{ size gives back 4 for classes }
|
{ size gives back 4 for classes }
|
||||||
tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,ptrsinttype);
|
tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,sizesinttype);
|
||||||
tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),ptrsinttype);
|
tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),sizesinttype);
|
||||||
{$ifdef WITHDMT}
|
{$ifdef WITHDMT}
|
||||||
if _class.classtype=ct_object then
|
if _class.classtype=ct_object then
|
||||||
begin
|
begin
|
||||||
|
@ -859,8 +859,8 @@ implementation
|
|||||||
odt_object:
|
odt_object:
|
||||||
begin
|
begin
|
||||||
{ size, -size, parent vmt [, dmt ] (same names as for class) }
|
{ size, -size, parent vmt [, dmt ] (same names as for class) }
|
||||||
vmtdef.add_field_by_def('vInstanceSize',ptrsinttype);
|
vmtdef.add_field_by_def('vInstanceSize',sizesinttype);
|
||||||
vmtdef.add_field_by_def('vInstanceSize2',ptrsinttype);
|
vmtdef.add_field_by_def('vInstanceSize2',sizesinttype);
|
||||||
vmtdef.add_field_by_def('vParent',voidpointertype);
|
vmtdef.add_field_by_def('vParent',voidpointertype);
|
||||||
{$ifdef WITHDMT}
|
{$ifdef WITHDMT}
|
||||||
vmtdef.add_field_by_def('',voidpointertype);
|
vmtdef.add_field_by_def('',voidpointertype);
|
||||||
|
Loading…
Reference in New Issue
Block a user