* take variant alignment from TVARDATA, should resolve #38022

git-svn-id: trunk@47286 -
This commit is contained in:
florian 2020-11-02 22:16:18 +00:00
parent 12843498d1
commit d5e20fa6a9

View File

@ -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);