* fix compilation on systems where SizeOf(CodePointer) <> SizeOf(Pointer): disable ToString for tkMethod on these systems for now

This commit is contained in:
Sven/Sarah Barth 2024-11-04 21:59:50 +01:00
parent cce871258e
commit f70a430b6f

View File

@ -4125,7 +4125,11 @@ begin
else
Result:='<Nil>';
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]);
{$ENDIF}
else
result := '<unknown kind: '+GetEnumName(System.TypeInfo(TTypeKind),Ord(Kind))+'>';
end;