[fpc-pascal] Wrong assignment detected only run time without warning
giuliano.colla at fastwebnet.it
Fri Jun 16 13:46:29 CEST 2023
Il 16/06/23 13:36, Peter B via fpc-pascal ha scritto:
> 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.
I can understand that. But the compiler generates quite a number of
warning for potential loss of information. In that case a little warning
wouldn't be excessive, I think.
More information about the fpc-pascal