[Aptitude-svn-commit] r3690 - in branches/aptitude-0.3/aptitude: .
src/generic
Daniel Burrows
dburrows at costa.debian.org
Tue Jul 26 04:13:40 UTC 2005
Author: dburrows
Date: Tue Jul 26 04:13:38 2005
New Revision: 3690
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/tags.h
Log:
Fix the utterly screwed up comparison operators.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Jul 26 04:13:38 2005
@@ -1,5 +1,9 @@
2005-07-25 Daniel Burrows <dburrows at debian.org>
+ * src/generic/tags.h:
+
+ Fix the breakage in the comparison operators.
+
* src/generic/tests/test_tags.cc:
Add specialized test forms for comparison tests.
Modified: branches/aptitude-0.3/aptitude/src/generic/tags.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/tags.h (original)
+++ branches/aptitude-0.3/aptitude/src/generic/tags.h Tue Jul 26 04:13:38 2005
@@ -91,7 +91,7 @@
bool operator<=(const tag &other) const
{
- return cmp(other) < 0;
+ return cmp(other) <= 0;
}
bool operator==(const tag &other) const
@@ -106,12 +106,12 @@
bool operator>(const tag &other) const
{
- return cmp(other) == 0;
+ return cmp(other) > 0;
}
bool operator>=(const tag &other) const
{
- return cmp(other) == 0;
+ return cmp(other) >= 0;
}
const_iterator begin() const;
More information about the Aptitude-svn-commit
mailing list