Changeset 1534 for trunk/yat/utility


Ignore:
Timestamp:
Sep 25, 2008, 8:24:28 PM (13 years ago)
Author:
Peter
Message:

fixed some bugs in DataWeight?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/DataWeight.cc

    r1487 r1534  
    7979  bool operator<=(const DataWeight& lhs, const DataWeight& rhs)
    8080  {
    81     return rhs > lhs;
     81    return !(lhs > rhs);
    8282  }
    8383
     
    8585  bool operator>=(const DataWeight& lhs, const DataWeight& rhs)
    8686  {
    87     return rhs < lhs;
     87    return !(lhs < rhs);
    8888  }
    8989
Note: See TracChangeset for help on using the changeset viewer.