aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/version_spec.cc')
-rw-r--r--paludis/version_spec.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index 09b275c..9fab178 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -372,7 +372,7 @@ VersionSpec::remove_revision() const
result._imp->parts.erase(std::remove_if(
result._imp->parts.begin(),
result._imp->parts.end(),
- IsRevisionPart()));
+ IsRevisionPart()), result._imp->parts.end());
std::string::size_type p;
if (std::string::npos != ((p = result._imp->text.rfind("-r"))))