mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 20:49:22 +02:00
* 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:
parent
e30ca27914
commit
4aed151833
@ -7390,7 +7390,12 @@ var
|
|||||||
begin
|
begin
|
||||||
case (FPropInfo^.PropProcs shr 2) and 3 of
|
case (FPropInfo^.PropProcs shr 2) and 3 of
|
||||||
ptField:
|
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);
|
AValue.Cast(FPropInfo^.PropType).ExtractRawData(FPropInfo^.SetProc);
|
||||||
|
{$endif}
|
||||||
ptStatic,
|
ptStatic,
|
||||||
ptVirtual:
|
ptVirtual:
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user