mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 14:19:28 +02:00
* fixed bug in r4674
git-svn-id: trunk@4678 -
This commit is contained in:
parent
e1373d9d5f
commit
6be389e954
@ -369,7 +369,6 @@ implementation
|
||||
inc(location.reference.offset,vs.fieldoffset);
|
||||
{$ifdef SUPPORT_UNALIGNED}
|
||||
{ packed? }
|
||||
{$warning unalignment check does not work since usefieldalignment is not stored in ppu}
|
||||
if (vs.owner.defowner.deftype in [recorddef,objectdef]) and
|
||||
(tabstractrecordsymtable(vs.owner).usefieldalignment=1) then
|
||||
location.reference.alignment:=1;
|
||||
@ -772,7 +771,9 @@ implementation
|
||||
begin
|
||||
inc(location.reference.offset,
|
||||
bytemulsize*tordconstnode(right).value);
|
||||
newsize:=int_cgsize(bytemulsize);
|
||||
{ don't do this for floats etc. }
|
||||
if (tcgsize2size[newsize] <> bytemulsize) then
|
||||
newsize:=int_cgsize(bytemulsize);
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user