addition of a qword and a negative longint causes a crash on x64
Original Reporter info from Mantis: qptain Nemo
-
Reporter name: qptain Nemo
Original Reporter info from Mantis: qptain Nemo
- Reporter name: qptain Nemo
Description:
Trying to add a negative longint to a qword causes a run-time error, even if the result isn't negative. According to another user doesn't manifest on x86. Also doesn't manifest if an int64 used instead of a longint.
Steps to reproduce:
var value1 : qword;
result : int64;
wtf : longint;
begin
value1:=100;
wtf:=-10;
result:=value1+wtf;
end.
Mantis conversion info:
- Mantis ID: 25800
- OS: linux
- OS Build: arch
- Build: 2.7.1 [2014/02/17] for x86_64
- Platform: x86_64
- Version: 2.7.1