[fpc-pascal] Convert to int64 note

Santiago A. svaa at ciberpiula.net
Fri Jul 14 12:59:30 CEST 2017


El 14/07/2017 a las 1:13, james at productionautomation.net escribió:
> I've been trying to get my programs to compile without any warnings or notes, but I keep getting this one:
>
> promill.pas(2137,42) Hint: Converting the operands to "Int64" before doing the subtract could prevent overflow errors.
>
> I get it a lot, but this is the line the above example is from:
>
> Last_GS:=G_End-(Max_Program_To_Display-1);
>
> Can someone please explain that this hint means and how I would convert the operands to "Int64" as recommended?
>
> James
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

What's the type of each variable?

-- 
Saludos

Santiago A.




More information about the fpc-pascal mailing list