mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 04:20:53 +01: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
|
begin
|
||||||
{ natural alignment by default }
|
{ natural alignment by default }
|
||||||
alignment:=size_2_align(savesize);
|
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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user