[fpc-pascal] LongInt and LongWord types
Marcelo Rocha
mcrocha at gmail.com
Wed Jul 8 23:00:16 CEST 2020
Delphi's LongInt and LongWord are 32 bits on Windows, but 64 bits on
supported Posix platforms(
http://docwiki.embarcadero.com/RADStudio/Rio/en/Simple_Types_(Delphi)),
following the conventions from LP64/LLP64. FreePascal declares with the
same size for all platforms.
What's the best way to do portable code: using types clong and culong?
FreePascal could emit a warning when compiling a code with Longint/Longword
variables, targeting a Posix platform, with {$mode delphi}?
Regards,
Marcelo Rocha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200708/9431542c/attachment.htm>
More information about the fpc-pascal
mailing list