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; 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