[fpc-pascal] Convert to int64 note

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jul 14 17:58:16 CEST 2017

On Fri, 14 Jul 2017 11:19:53 -0400
<james at productionautomation.net> wrote:

> >Last_GS:=G_End-(longint(Max_Program_To_Display)-1);  
> This aso fixes the warning if I leave all my variables alone.  If I understand this correctly in this case longint() is a function that returns a longint variable to be used in the calculation, so when it does the -1 it's ok it that part of the formula ends up being negative.

longint is type. longint() is a typecast.


More information about the fpc-pascal mailing list