mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 00:42:06 +02:00
+ support 16-bit pointers in TFPList.IndexOf
This commit is contained in:
parent
538f8201e2
commit
1eca53a681
@ -212,7 +212,9 @@ function TFPList.IndexOf(Item: Pointer): 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