mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 23:09:28 +02:00
git-svn-id: trunk@19338 -
This commit is contained in:
parent
77c3477b91
commit
7bb1c642dd
@ -780,7 +780,8 @@ implementation
|
||||
len:=left.resultdef.size;
|
||||
|
||||
{ data smaller than an aint has less alignment requirements }
|
||||
alignmentrequirement:=min(len,sizeof(aint));
|
||||
{ max(1,...) avoids div by zero in case of an empty record }
|
||||
alignmentrequirement:=min(max(1,len),sizeof(aint));
|
||||
|
||||
if (right.location.reference.offset mod alignmentrequirement<>0) or
|
||||
(left.location.reference.offset mod alignmentrequirement<>0) or
|
||||
|
Loading…
Reference in New Issue
Block a user