Dec statement errors out with range check error.
Original Reporter info from Mantis: DonAlfredo @DonAlfredo
-
Reporter name: Alfred
Original Reporter info from Mantis: DonAlfredo @DonAlfredo
- Reporter name: Alfred
Description:
A dec statement inside the Lazarus editor errors out with a range check error.
However, no ranges are crossed.
Included is the debugger output, part of the source code and part of the assembler.
If the dec is replaced by a statement e.g. x:=x-y instead of dec(x,y), than all works as expected.
I did not succeed in isolating this bug: test programmes doing the same run normally.
Range error on line 2987 of synedit.pp through a call of GetWheelScrollAmount on line 3315:
dec(FMouseWheelAccumulator, WClicks * WHEEL_DELTA);
Additional information:
See for more details bug : http://bugs.freepascal.org/view.php?id=29912
Thanks for solving the above: works !
Mantis conversion info:
- Mantis ID: 29923
- OS: Linux
- OS Build: Linux Aarch64
- Build: REV 33380
- Platform: Odroid-C2
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 33382 (#a5dba44f)