strange CompareDWord
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
hi,
I was writting a program and I touched a proglem. I wrote a short progrem to reproduce my problem:
var i1, i2: DWORD;
begin
i1:=1684234849; i2:=1717789281;
writeln(comparedword(i1, i2, 1));
writeln(comparebyte(i1, i2,4 ));
end.
I expected the program to write two non-zero numbers, but I got
0
-2
I compiled the program with
fpc -Sd pok.pos
command on Intel Celeron 466 based RedHat 7.1Cz Linux machine (kernel 2.4.10) using fpc 1.0.4.
I am not able to explain the behavior to me.
thanks in advance, David Kolovratnik
Additional information:
Reporter: David Kolovratník
EMail: smaj at seznam dot cz
Mantis conversion info:
- Mantis ID: 3770
- OS: Linux
- Version: 1.0.4
- Fixed in version: N/A