* fix compilation on 64 Bit targets

git-svn-id: trunk@19393 -
This commit is contained in:
florian 2011-10-06 17:54:44 +00:00
parent fe782eac07
commit cd2488d177
2 changed files with 22 additions and 22 deletions

View File

@ -924,7 +924,7 @@ type
private
FBytes: TBytes;
protected
function Realloc(var NewCapacity: Longint): Pointer; override;
function Realloc(var NewCapacity: PtrInt): Pointer; override;
public
constructor Create(const ABytes: TBytes); overload;
property Bytes: TBytes read FBytes;

View File

@ -767,7 +767,7 @@ begin
FCapacity:=Length(FBytes);
end;
function TBytesStream.Realloc(var NewCapacity: Longint): Pointer;
function TBytesStream.Realloc(var NewCapacity: PtrInt): Pointer;
begin
// adapt TMemoryStream code to use with dynamic array
if NewCapacity<0 Then