mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-26 15:11:33 +01:00
* fix compilation on 64 Bit targets
git-svn-id: trunk@19393 -
This commit is contained in:
parent
fe782eac07
commit
cd2488d177
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user