Bart wrote:
On Wed, Jan 24, 2018 at 12:59 PM, Marco van de Voort <mar...@stack.nl> wrote:

Which seems correct. The expression to compare with is entirely longword and
it gets negative (5+5) - (10+10).
But shouldn't it then also give the same error if compiled for 32 bit?

Agree.

The weird thing is, in 32 bit, the compiler gives the Hint: (4079) Converting the operands to "Int64" before doing the add could prevent overflow errors.
but does not raise the RunError(215).

The 64 bit compiler does not give the Hint but raises the RunError(215).

I think both versions should be fixed.

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

Reply via email to