[fpc-devel] Just need to double check the size of Integer

Michael Van Canneyt michael at freepascal.org
Thu Nov 24 14:59:52 CET 2022



On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote:

> rtl/inc/systemh.inc, line 360

Latest Git says:


{$ifdef CPURISCV64}
   {$define DEFAULT_DOUBLE}

   {$define FPC_INCLUDE_SOFTWARE_MOD_DIV}
   {$define FPC_INCLUDE_SOFTWARE_MUL}
   {$define FPC_INCLUDE_SOFTWARE_INT64_TO_DOUBLE}

   {$ifndef FPUNONE}
     {$define SUPPORT_SINGLE}
     {$define SUPPORT_DOUBLE}

     {$define FPC_INCLUDE_SOFTWARE_INT64_TO_DOUBLE}
// <----- Line 360
     ValReal = Double;
   {$endif}
{$endif CPURISCV64}

So I think the line you mean is 451 in latest git.

But yes, it is probably better to say

SizeInt = SmallInt;


Michael.

>
> On 24/11/2022 13:52, Michael Van Canneyt via fpc-devel wrote:
>>
>>
>> On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote:
>>
>>> Would it be better to define "SizeInt = SmallInt;" here just so it's 
>>> crystal clear what size it is?
>>
>> Where is 'here' ?
>>
>> Michael.
>> _______________________________________________
>> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>
> _______________________________________________
> 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