[fpc-devel] Just need to double check the size of Integer
J. Gareth Moreton
gareth at moreton-family.com
Thu Nov 24 14:35:44 CET 2022
Hence why I wanted to double-check! Normally if I want something to be
an particular size, I use "ShortInt", "SmallInt" and "LongInt" etc. to
ensure there is no ambiguity.
Kit
On 24/11/2022 13:25, Ondrej Pokorny via fpc-devel wrote:
> Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel:
>> On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote:
>>>
>>> I just need to double-check something. Under CPU16, SizeInt and
>>> SizeUInt are declared as follows:
>>>
>>> SizeInt = Integer;
>>> SizeUInt = Word;
>>>
>>> Is Integer 16-bit in this case?
>>
>> Yes.
>
> Are you sure? systemh.inc is compiled with {$mode objfpc} (see line
> 22), so Integer within the system unit is 32-bit.
>
> So to me it looks like a bug.
>
> Documentation:
> https://www.freepascal.org/docs-html/ref/refsu4.html
> https://www.freepascal.org/docs-html/rtl/system/sizeint.html
>
> Ondrej
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list