From: Luca Bruno Date: Sat, 11 Oct 2008 07:42:17 +0000 (+0200) Subject: Fix another compilation warning in apt-pkg/versionmatch.cc X-Git-Tag: 0.7.21~70^2~3 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/d320fdc3539f686e690a4ae0cb3f941b0e1a0456?hp=--cc Fix another compilation warning in apt-pkg/versionmatch.cc --- d320fdc3539f686e690a4ae0cb3f941b0e1a0456 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; diff --git a/debian/changelog b/debian/changelog index 9f73c25cc..b88df66a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ apt (0.7.17~exp1) UNRELEASED; urgency=low [ Luca Bruno ] - * apt-pkg/acquire.cc: - - fix a compilation warning + * Fix compilation warnings: + - apt-pkg/acquire.cc + - apt-pkg/versionmatch.cc -- Luca Bruno Sat, 11 Oct 2008 09:17:46 +0200