Update uPSRuntime.pas

fixes  FPC an define CPUX64 #96
This commit is contained in:
Carlo Kok 2015-01-07 14:38:37 +01:00
parent fec9aa03c8
commit 64bc64088e

View File

@ -4226,13 +4226,13 @@ begin
exit;
end;
GetMem(darr, Longint(NewLength * elSize) + SizeOf(TDynArrayRecHeader));
{$IFDEF CPUX64}
darr^.header._Padding:=0;
{$ENDIF CPUX64}
darr^.header.refCnt:=1;
{$IFDEF FPC}
darr^.header.high := NewLength - 1;
{$ELSE}
{$IFDEF CPUX64}
darr^.header._Padding:=0;
{$ENDIF CPUX64}
darr^.header.length := NewLength;
{$ENDIF FPC}
for i := 0 to NewLength -1 do