Re: [fpc-devel] CompareValue

2007-03-04 Thread Vincent Snijders
C Western schreef: Пётр Косаревский wrote: 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

Re: [fpc-devel] CompareValue

2007-03-04 Thread mftq75
Quoting Vincent Snijders [EMAIL PROTECTED]: C Western schreef: ð£ÔÒ ëÏÓÁÒÅ×ÓËÉÊ wrote: 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

Re: [fpc-devel] CompareValue

2007-03-04 Thread Vincent Snijders
[EMAIL PROTECTED] schreef: Quoting Vincent Snijders [EMAIL PROTECTED]: C Western schreef: ð£ÔÒ ëÏÓÁÒÅ×ÓËÉÊ wrote: 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

Re: [fpc-devel] CompareValue

2007-03-03 Thread C Western
Пётр Косаревский wrote: 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:

[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 --- ???