mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 07:59:15 +02:00
* set alignment for 0-byte sized entities to 1 instead of to 0
git-svn-id: trunk@12931 -
This commit is contained in:
parent
fe773871d6
commit
c04e9e36f7
@ -1069,6 +1069,11 @@ implementation
|
||||
begin
|
||||
{ natural alignment by default }
|
||||
alignment:=size_2_align(savesize);
|
||||
{ can happen if savesize = 0, e.g. for voiddef or
|
||||
an empty record
|
||||
}
|
||||
if (alignment=0) then
|
||||
alignment:=1;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user