[fpc-pascal] RunError(215) occurs only in win 64 bit, not win 32 bit
dec12 at avidsoft.com.hk
Wed Jan 24 17:42:51 CET 2018
> On Wed, Jan 24, 2018 at 12:59 PM, Marco van de Voort <marcov at 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?
The weird thing is, in 32 bit, the compiler gives the Hint: (4079)
Converting the operands to "Int64" before doing the add could prevent
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.
More information about the fpc-pascal