mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 10:20:21 +02:00
* also correctly align the pointer for the record elements inside FPC_COPY
git-svn-id: trunk@42781 -
This commit is contained in:
parent
865f675a7a
commit
00a418f589
@ -404,7 +404,7 @@ begin
|
||||
Result:=PRecordInfoInit(Temp)^.Size;
|
||||
EleCount:=PRecordInfoInit(Temp)^.Count;
|
||||
{ Get element info, hacky, but what else can we do? }
|
||||
Temp:=aligntoptr(Pointer(@PRecordInfoInit(Temp)^.Count)+SizeOf(PRecordInfoInit(Temp)^.Count));
|
||||
Temp:=AlignTypeData(Pointer(@PRecordInfoInit(Temp)^.Count)+SizeOf(PRecordInfoInit(Temp)^.Count));
|
||||
{$else VER3_0}
|
||||
Result:=PRecordInfoFull(Temp)^.Size;
|
||||
EleCount:=PRecordInfoFull(Temp)^.Count;
|
||||
|
Loading…
Reference in New Issue
Block a user