Browse Source

+ support 16-bit pointer size in TFPGObjectList.IndexOf

Nikolay Nikolov 2 năm trước cách đây
mục cha
commit
f0481ec1e1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      rtl/objpas/fgl.pp

+ 3 - 1
rtl/objpas/fgl.pp

@@ -1128,7 +1128,9 @@ end;
 function TFPGObjectList.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