summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-22 11:51:15 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-22 11:51:15 +0000
commit2f695d73f95dde5e886fe60ac811a150140d7a82 (patch)
tree78af41efc8eef2493a9c56f7ab80e7a960d23d97 /ace
parentebbd9c1a3ad6fb60f7a12bc8912e4b922daf2309 (diff)
downloadATCD-2f695d73f95dde5e886fe60ac811a150140d7a82.tar.gz
(ACE_U_LongLong): fixed comparision operators
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.i16
1 files changed, 12 insertions, 4 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 0e6f3b756d8..c386e8ca0a2 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -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