mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +02:00
* fix compilation on systems where SizeOf(CodePointer) <> SizeOf(Pointer): disable ToString for tkMethod on these systems for now
This commit is contained in:
parent
cce871258e
commit
f70a430b6f
@ -4125,7 +4125,11 @@ begin
|
|||||||
else
|
else
|
||||||
Result:='<Nil>';
|
Result:='<Nil>';
|
||||||
end;
|
end;
|
||||||
|
{$IF SIZEOF(POINTER) = SIZEOF(CODEPOINTER)}
|
||||||
|
{ if CodePointer is not the same as Pointer then it currently can't be
|
||||||
|
passed onto a array of const }
|
||||||
tkMethod: Result := Format('(method code=%p, data=%p)', [FData.FAsMethod.Code, FData.FAsMethod.Data]);
|
tkMethod: Result := Format('(method code=%p, data=%p)', [FData.FAsMethod.Code, FData.FAsMethod.Data]);
|
||||||
|
{$ENDIF}
|
||||||
else
|
else
|
||||||
result := '<unknown kind: '+GetEnumName(System.TypeInfo(TTypeKind),Ord(Kind))+'>';
|
result := '<unknown kind: '+GetEnumName(System.TypeInfo(TTypeKind),Ord(Kind))+'>';
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user