[fpc-pascal] Wrong assignment detected only run time without warning

Peter B peter at pblackman.plus.com
Fri Jun 16 13:36:59 CEST 2023


On 16/06/2023 11:55, Giuliano Colla via fpc-pascal wrote:
>
> Is that the intended behavior of compiler?
>

Yes. Assigning a 64bit integer to a 32bit one is fine as long as the range is within bounds.
Range of a variable can only be checked at run time.




More information about the fpc-pascal mailing list