[Aptitude-svn-commit] r3688 - in branches/aptitude-0.3/aptitude: .
src/generic
Daniel Burrows
dburrows at costa.debian.org
Tue Jul 26 04:00:05 UTC 2005
Author: dburrows
Date: Tue Jul 26 04:00:02 2005
New Revision: 3688
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/tags.cc
Log:
Fix a bounds check; yet another test case works now.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Jul 26 04:00:02 2005
@@ -2,6 +2,12 @@
* src/generic/tags.cc:
+ Fix an incorrect bounds-check (I tested an iterator on the
+ container "other" against the end() of "this"). Clears up
+ another failing test case. :-)
+
+ * src/generic/tags.cc:
+
Strip whitespace from the front and back of tags upon
construction.
Modified: branches/aptitude-0.3/aptitude/src/generic/tags.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/tags.cc (original)
+++ branches/aptitude-0.3/aptitude/src/generic/tags.cc Tue Jul 26 04:00:02 2005
@@ -98,7 +98,7 @@
++otherT;
}
- if(otherT != end())
+ if(otherT != other.end())
return -1;
else if(myT != end())
return 1;
More information about the Aptitude-svn-commit
mailing list