mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-28 18:41:35 +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
|
private
|
||||||
FBytes: TBytes;
|
FBytes: TBytes;
|
||||||
protected
|
protected
|
||||||
function Realloc(var NewCapacity: Longint): Pointer; override;
|
function Realloc(var NewCapacity: PtrInt): Pointer; override;
|
||||||
public
|
public
|
||||||
constructor Create(const ABytes: TBytes); overload;
|
constructor Create(const ABytes: TBytes); overload;
|
||||||
property Bytes: TBytes read FBytes;
|
property Bytes: TBytes read FBytes;
|
||||||
|
|||||||
@ -767,7 +767,7 @@ begin
|
|||||||
FCapacity:=Length(FBytes);
|
FCapacity:=Length(FBytes);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TBytesStream.Realloc(var NewCapacity: Longint): Pointer;
|
function TBytesStream.Realloc(var NewCapacity: PtrInt): Pointer;
|
||||||
begin
|
begin
|
||||||
// adapt TMemoryStream code to use with dynamic array
|
// adapt TMemoryStream code to use with dynamic array
|
||||||
if NewCapacity<0 Then
|
if NewCapacity<0 Then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user