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.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to