diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-22 11:51:15 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-22 11:51:15 +0000 |
commit | 2f695d73f95dde5e886fe60ac811a150140d7a82 (patch) | |
tree | 78af41efc8eef2493a9c56f7ab80e7a960d23d97 /ace | |
parent | ebbd9c1a3ad6fb60f7a12bc8912e4b922daf2309 (diff) | |
download | ATCD-2f695d73f95dde5e886fe60ac811a150140d7a82.tar.gz |
(ACE_U_LongLong): fixed comparision operators
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.i | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -6452,25 +6452,33 @@ ACE_U_LongLong::operator== (const ACE_U_LongLong &ll) const ACE_INLINE int ACE_U_LongLong::operator< (const ACE_U_LongLong &ll) const { - return hi_ < ll.hi_ && lo_ < ll.lo_; + return hi_ < ll.hi_ ? 1 + : hi_ > ll.hi_ ? 0 + : lo_ < ll.lo_; } ACE_INLINE int ACE_U_LongLong::operator<= (const ACE_U_LongLong &ll) const { - return hi_ <= ll.hi_ && lo_ <= ll.lo_; + return hi_ < ll.hi_ ? 1 + : hi_ > ll.hi_ ? 0 + : lo_ <= ll.lo_; } ACE_INLINE int ACE_U_LongLong::operator> (const ACE_U_LongLong &ll) const { - return hi_ > ll.hi_ && lo_ > ll.lo_; + return hi_ > ll.hi_ ? 1 + : hi_ < ll.hi_ ? 0 + : lo_ > ll.lo_; } ACE_INLINE int ACE_U_LongLong::operator>= (const ACE_U_LongLong &ll) const { - return hi_ >= ll.hi_ && lo_ >= ll.lo_; + return hi_ > ll.hi_ ? 1 + : hi_ < ll.hi_ ? 0 + : lo_ >= ll.lo_; } ACE_INLINE |