We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb8327 commit 5488f88Copy full SHA for 5488f88
Source/Base/Collections/Spring.Collections.Lists.pas
@@ -529,11 +529,11 @@ function TAbstractArrayList<T>.GetEnumerator: IEnumerator<T>;
529
530
function TAbstractArrayList<T>.GetItem(index: Integer): T;
531
var
532
- listCount: Integer;
+ items: Pointer;
533
begin
534
- listCount := Count;
535
- if Cardinal(index) < Cardinal(listCount) then
536
- Exit(fItems[index]);
+ items := fItems;
+ if Cardinal(index) < Cardinal(Count) then
+ Exit(TArray<T>(items)[index]);
537
RaiseHelper.ArgumentOutOfRange_Index;
538
{$IFDEF DELPHIXE7_UP}{$IFDEF CPUX86}{$IFDEF OPTIMIZATION_ON}
539
// cause the compiler to omit push instruction for types that return in eax
0 commit comments