* fix compilation on i8086 where depending on the memory type code and data pointers may be different (Note: this does not mean that the code works as the RTTI data generated by the compiler does not seem valid either)

This commit is contained in:
Sven/Sarah Barth 2024-12-29 18:41:02 +01:00
parent e30ca27914
commit 4aed151833

View File

@ -7390,7 +7390,12 @@ var
begin
case (FPropInfo^.PropProcs shr 2) and 3 of
ptField:
{$ifdef cpu8086}
{ convert to the correct pointer type }
AValue.Cast(FPropInfo^.PropType).ExtractRawData(PPointer(@(FPropInfo^.SetProc))^);
{$else}
AValue.Cast(FPropInfo^.PropType).ExtractRawData(FPropInfo^.SetProc);
{$endif}
ptStatic,
ptVirtual:
begin