mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 11:06:19 +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;
|
function TFPGInterfacedObjectList.IndexOf(const Item: T): Integer;
|
||||||
begin
|
begin
|
||||||
Result :=
|
Result :=
|
||||||
{$if sizeof(pointer) = sizeof(dword)}
|
{$if sizeof(pointer) = sizeof(word)}
|
||||||
|
IndexWord
|
||||||
|
{$elseif sizeof(pointer) = sizeof(dword)}
|
||||||
IndexDWord
|
IndexDWord
|
||||||
{$elseif sizeof(pointer) = sizeof(qword)}
|
{$elseif sizeof(pointer) = sizeof(qword)}
|
||||||
IndexQWord
|
IndexQWord
|
||||||
|
Loading…
Reference in New Issue
Block a user