mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 12:05:57 +02:00
* use voidpointertype.size (which supports i8086 far data memory models) instead
of sizeof(pint) in tobjectdef.size and tobjectdef.alignment when returning the size and alignment of classes and interfaces git-svn-id: trunk@27244 -
This commit is contained in:
parent
5d9a193887
commit
043c0ba215
@ -6473,7 +6473,7 @@ implementation
|
|||||||
function tobjectdef.size : asizeint;
|
function tobjectdef.size : asizeint;
|
||||||
begin
|
begin
|
||||||
if objecttype in [odt_class,odt_interfacecom,odt_interfacecorba,odt_dispinterface,odt_objcclass,odt_objcprotocol,odt_helper,odt_javaclass,odt_interfacejava] then
|
if objecttype in [odt_class,odt_interfacecom,odt_interfacecorba,odt_dispinterface,odt_objcclass,odt_objcprotocol,odt_helper,odt_javaclass,odt_interfacejava] then
|
||||||
result:=sizeof(pint)
|
result:=voidpointertype.size
|
||||||
else
|
else
|
||||||
result:=tObjectSymtable(symtable).datasize;
|
result:=tObjectSymtable(symtable).datasize;
|
||||||
end;
|
end;
|
||||||
@ -6482,7 +6482,7 @@ implementation
|
|||||||
function tobjectdef.alignment:shortint;
|
function tobjectdef.alignment:shortint;
|
||||||
begin
|
begin
|
||||||
if objecttype in [odt_class,odt_interfacecom,odt_interfacecorba,odt_dispinterface,odt_objcclass,odt_objcprotocol,odt_helper,odt_javaclass,odt_interfacejava] then
|
if objecttype in [odt_class,odt_interfacecom,odt_interfacecorba,odt_dispinterface,odt_objcclass,odt_objcprotocol,odt_helper,odt_javaclass,odt_interfacejava] then
|
||||||
alignment:=sizeof(pint)
|
alignment:=voidpointertype.size
|
||||||
else
|
else
|
||||||
alignment:=tObjectSymtable(symtable).recordalignment;
|
alignment:=tObjectSymtable(symtable).recordalignment;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user