mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 19:10:18 +02:00
* take variant alignment from TVARDATA, should resolve #38022
git-svn-id: trunk@47286 -
This commit is contained in:
parent
12843498d1
commit
d5e20fa6a9
@ -217,6 +217,7 @@ interface
|
||||
constructor ppuload(ppufile:tcompilerppufile);
|
||||
function getcopy : tstoreddef;override;
|
||||
function GetTypeName:string;override;
|
||||
function alignment : shortint;override;
|
||||
{ do not override this routine in platform-specific subclasses,
|
||||
override ppuwrite_platform instead }
|
||||
procedure ppuwrite(ppufile:tcompilerppufile);override;final;
|
||||
@ -3659,6 +3660,12 @@ implementation
|
||||
end;
|
||||
|
||||
|
||||
function tvariantdef.alignment: shortint;
|
||||
begin
|
||||
result:=search_system_type('TVARDATA').typedef.alignment;
|
||||
end;
|
||||
|
||||
|
||||
procedure tvariantdef.ppuwrite(ppufile:tcompilerppufile);
|
||||
begin
|
||||
inherited ppuwrite(ppufile);
|
||||
|
Loading…
Reference in New Issue
Block a user