[fpc-devel] CompareValue

2007-03-02 Thread Vincent Snijders
Hi, In the math unit are the CompareValue functions only for signed integers. Why not for DWORD and QWORD? I tested with the program below. For DWord is works correctly, presumely because the int64 overload is used. For QWord without typecast the code doesn't compile, because the compile

Re: [fpc-devel] CompareValue

2007-03-02 Thread Пётр Косаревский
In the math unit are the CompareValue functions only for signed integers. Why not for DWORD and QWORD? I guess, that it's Delphi mimicing implementation (because it is Delphi-like). And it can be tricky to distinguish signed and unsigned expression values. Like, a: qword; a-1 --- ???