Forum > General
[SOLVED] Strange error on interface in FPC 3.3.1
gidesa:
The program was compiled in FPC for Win32 bit, and has {$Mode Delphi}.
But Delphi 32 bit has System.Integer = Integer = longint.
So also in Fpc, for mode Delphi, should be System.Integer = longint. It's not correct that it is smallint.
Thaddy:
--- Quote from: jamie on November 09, 2024, 07:23:52 pm ---[/b] accurate statement about FPC copying Delphi.
--- End quote ---
We don't ; and that will stay that way.
PascalDragon:
--- Quote from: gidesa on November 09, 2024, 06:08:36 pm ---So also in Fpc, for mode Delphi, should be System.Integer = longint. It's not correct that it is smallint.
--- End quote ---
That simply is not possible (or at least a solution for this is not feasible). That is one of the things that are known incompatibilties between FPC and Delphi.
jamie:
So using a System.Integer gives you a 16 bit size. ?
I know that it does because I've already have tested it, it's two bytes wide.
Navigation
[0] Message Index
[*] Previous page