parent
fec9aa03c8
commit
64bc64088e
@ -4226,13 +4226,13 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
GetMem(darr, Longint(NewLength * elSize) + SizeOf(TDynArrayRecHeader));
|
GetMem(darr, Longint(NewLength * elSize) + SizeOf(TDynArrayRecHeader));
|
||||||
{$IFDEF CPUX64}
|
|
||||||
darr^.header._Padding:=0;
|
|
||||||
{$ENDIF CPUX64}
|
|
||||||
darr^.header.refCnt:=1;
|
darr^.header.refCnt:=1;
|
||||||
{$IFDEF FPC}
|
{$IFDEF FPC}
|
||||||
darr^.header.high := NewLength - 1;
|
darr^.header.high := NewLength - 1;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
|
{$IFDEF CPUX64}
|
||||||
|
darr^.header._Padding:=0;
|
||||||
|
{$ENDIF CPUX64}
|
||||||
darr^.header.length := NewLength;
|
darr^.header.length := NewLength;
|
||||||
{$ENDIF FPC}
|
{$ENDIF FPC}
|
||||||
for i := 0 to NewLength -1 do
|
for i := 0 to NewLength -1 do
|
||||||
|
Loading…
Reference in New Issue
Block a user