maxlongint is declared as a 32 value but longint is system dependent
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
maxlongint is declared as a 32 value on all systems in systemh.inc but longint is a system dependent integer type, so maxlongint can not be used on a 64 bit system.
Steps to reproduce:
Check systemh.inc for maxlongint: it is 32 bit, which is wrong on a 64 bit system unless we are not Delphi compatible with this detail.
Additional information:
This came up when analysing the code in this link:
http://forum.lazarus.freepascal.org/index.php/topic,35751.msg236896.html#msg236896
Delphi says its longint is platform dependent:
http://docwiki.embarcadero.com/RADStudio/Seattle/en/Internal_Data_Formats
Mantis conversion info:
- Mantis ID: 31366
- OS: all
- OS Build: all
- Build: 35403
- Platform: all
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 1390 (#bac46e1a)
- Monitored by: » Lupp (Wolfgang Jäger)
- Target version: 3.2.0