mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:29:25 +02:00
+ support 16-bit pointer size in TFPGInterfacedObjectList.IndexOf
This commit is contained in:
parent
34471a6403
commit
538f8201e2
@ -1265,7 +1265,9 @@ end;
|
||||
function TFPGInterfacedObjectList.IndexOf(const Item: T): Integer;
|
||||
begin
|
||||
Result :=
|
||||
{$if sizeof(pointer) = sizeof(dword)}
|
||||
{$if sizeof(pointer) = sizeof(word)}
|
||||
IndexWord
|
||||
{$elseif sizeof(pointer) = sizeof(dword)}
|
||||
IndexDWord
|
||||
{$elseif sizeof(pointer) = sizeof(qword)}
|
||||
IndexQWord
|
||||
|
Loading…
Reference in New Issue
Block a user