mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 22:30:34 +02:00
* handle records with managed fields correctly after attribute merge fixes
git-svn-id: trunk@42480 -
This commit is contained in:
parent
aac8559a8d
commit
a60ab40237
@ -401,11 +401,16 @@ begin
|
||||
recordop^.Copy(Src,Dest)
|
||||
else
|
||||
begin
|
||||
{$endif VER3_0}
|
||||
Result:=PRecordInfoInit(Temp)^.Size;
|
||||
EleCount:=PRecordInfoInit(Temp)^.Count;
|
||||
{ Get element info, hacky, but what else can we do? }
|
||||
Temp:=Pointer(@PRecordInfoInit(Temp)^.Count)+SizeOf(PRecordInfoInit(Temp)^.Count);
|
||||
{$else VER3_0}
|
||||
Result:=PRecordInfoFull(Temp)^.Size;
|
||||
EleCount:=PRecordInfoFull(Temp)^.Count;
|
||||
{ Get element info, hacky, but what else can we do? }
|
||||
Temp:=Pointer(@PRecordInfoFull(Temp)^.Count)+SizeOf(PRecordInfoFull(Temp)^.Count);
|
||||
{$endif VER3_0}
|
||||
expectedoffset:=0;
|
||||
{ Process elements with rtti }
|
||||
for i:=1 to EleCount Do
|
||||
|
Loading…
Reference in New Issue
Block a user