summaryrefslogtreecommitdiff
path: root/apt-pkg/versionmatch.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2008-10-25 10:29:21 +0200
committerMichael Vogt <mvo@debian.org>2008-10-25 10:29:21 +0200
commit2569ac285813e0ca36d76c03cce92cf490c63e6d (patch)
tree5f88ceae04c1192f097e1b117593e3b39febf948 /apt-pkg/versionmatch.cc
parentcfe0526e097983680ce7c3675bbf77f735675e9d (diff)
parentf8b1274722522826650a37f87bf9e743b5bca337 (diff)
merged from Luca Bruno
Diffstat (limited to 'apt-pkg/versionmatch.cc')
-rw-r--r--apt-pkg/versionmatch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc
index 4a426809c..5c25c2f7b 100644
--- a/apt-pkg/versionmatch.cc
+++ b/apt-pkg/versionmatch.cc
@@ -124,7 +124,7 @@ bool pkgVersionMatch::MatchVer(const char *A,string B,bool Prefix)
const char *Ae = Ab + strlen(A);
// Strings are not a compatible size.
- if ((unsigned)(Ae - Ab) != B.length() && Prefix == false ||
+ if (((unsigned)(Ae - Ab) != B.length() && Prefix == false) ||
(unsigned)(Ae - Ab) < B.length())
return false;