[fpc-devel] Unexpected behaviour with intermediate results
J. Gareth Moreton
gareth at moreton-family.com
Tue Jun 12 18:48:34 CEST 2018
As pointed out in the bug report, it's not a bug. As listed in the
documentation over here:
https://www.freepascal.org/docs-html/current/ref/refsu4.html
"Every integer smaller than the ”native” size is promoted to a signed
version of the ”native” size. Integers equal to the ”native” size
keep their signedness."
Apologies for not abiding by RTFM - it's hard to find all the little notes
sometimes. Still, this is useful to know when it comes to future
optimization work.
Gareth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180612/b1c62e92/attachment.html>
More information about the fpc-devel
mailing list