mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 08:59:26 +02:00
* also move to the next field when skipping it
git-svn-id: trunk@39699 -
This commit is contained in:
parent
70ae0a2dc9
commit
17ebe6e28f
@ -76,8 +76,10 @@ begin
|
||||
SetLength(elements, td^.TotalFieldCount);
|
||||
for i := 0 to td^.TotalFieldCount - 1 do begin
|
||||
{ ToDo: what about fields that are larger that what we have currently? }
|
||||
if field^.FldOffset < curoffset then
|
||||
if field^.FldOffset < curoffset then begin
|
||||
Inc(field);
|
||||
Continue;
|
||||
end;
|
||||
remoffset := field^.FldOffset - curoffset;
|
||||
{ insert padding elements }
|
||||
while remoffset >= SizeOf(QWord) do begin
|
||||
|
Loading…
Reference in New Issue
Block a user