File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,8 @@ TPSList = class(TObject)
351
351
352
352
FCheckCount: Cardinal;
353
353
private
354
- function GetItem (Nr: Cardinal ): Pointer;
355
- procedure SetItem (Nr: Cardinal ; P: Pointer);
354
+ function GetItem (Nr: Longint ): Pointer;
355
+ procedure SetItem (Nr: Longint ; P: Pointer);
356
356
public
357
357
{ $IFNDEF PS_NOSMARTLIST}
358
358
@@ -369,7 +369,7 @@ TPSList = class(TObject)
369
369
370
370
property Count: Cardinal read FCount;
371
371
372
- property Items[nr: Cardinal ]: Pointer read GetItem write SetItem; default;
372
+ property Items[nr: Longint ]: Pointer read GetItem write SetItem; default;
373
373
374
374
function Add (P: Pointer): Longint;
375
375
@@ -921,17 +921,17 @@ destructor TPSList.Destroy;
921
921
end ;
922
922
// -------------------------------------------------------------------
923
923
924
- procedure TPSList.SetItem (Nr: Cardinal ; P: Pointer);
924
+ procedure TPSList.SetItem (Nr: Longint ; P: Pointer);
925
925
begin
926
- if (FCount = 0 ) or (Nr >= FCount) then
926
+ if (FCount = 0 ) or (Cardinal(Nr) >= FCount) then
927
927
Exit;
928
928
FData[Nr] := P;
929
929
end ;
930
930
// -------------------------------------------------------------------
931
931
932
- function TPSList.GetItem (Nr: Cardinal ): Pointer; { 12}
932
+ function TPSList.GetItem (Nr: Longint ): Pointer; { 12}
933
933
begin
934
- if Nr < FCount then
934
+ if Cardinal(Nr) < FCount then
935
935
GetItem := FData[Nr]
936
936
else
937
937
GetItem := nil ;
You can’t perform that action at this time.
0 commit comments