Lazarus doesn't compile with FPC 2.5.1. r14536 (SVN curent)
Original Reporter info from Mantis: befelemepeseveze
-
Reporter name:
Original Reporter info from Mantis: befelemepeseveze
- Reporter name:
Description:
lclmemmanager.pas(278,27) Error: function header doesn't match any method of this class "TExtMemoryStream.Realloc(var LongInt):^untyped;"
lclmemmanager.pas(283,40) Error: Call by var for arg no. 1 has to match exactly: Got "LongInt" expected "Int64"
lclmemmanager.pas(288) Fatal: There were 2 errors compiling module, stopping
Steps to reproduce:
cd /svn/lazarus/trunk
make clean
make all install INSTALL_PREFIX=
Additional information:
Please review a hotfix working for me:
15:40 myname@tux64:~/svn/lazarus/trunk/lcl$ svn diff lclmemmanager.pas
Index: lclmemmanager.pas
===================================================================
--- lclmemmanager.pas (revision 23367)
+++ lclmemmanager.pas (working copy)
@@ -95,7 +95,7 @@
TExtMemoryStream = class(TMemoryStream)
protected
- function Realloc(var NewCapacity: Longint): Pointer; override;
+ function Realloc(var NewCapacity: PtrInt): Pointer; override;
public
property Capacity;
end;
@@ -275,7 +275,7 @@
{ TExtMemoryStream }
-function TExtMemoryStream.Realloc(var NewCapacity: LongInt): Pointer;
+function TExtMemoryStream.Realloc(var NewCapacity: PtrInt): Pointer;
begin
// if we are growing, grow at least a quarter
if (NewCapacity>Capacity) then
15:40 myname@tux64:~/svn/lazarus/trunk/lcl$
Mantis conversion info:
- Mantis ID: 15462
- OS: Ubuntu
- OS Build: 9.10
- Build: r23367
- Platform: x86-64
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 23385 (#ac0a784f)