mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:14:25 +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
|
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