Преглед на файлове

+ support 16-bit pointers in TFPList.IndexOf

Nikolay Nikolov преди 2 години
родител
ревизия
1eca53a681
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      rtl/objpas/classes/lists.inc

+ 3 - 1
rtl/objpas/classes/lists.inc

@@ -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