]> git.saurik.com Git - apt.git/commitdiff
Fix another compilation warning in apt-pkg/versionmatch.cc
authorLuca Bruno <lethalman88@gmail.com>
Sat, 11 Oct 2008 07:42:17 +0000 (09:42 +0200)
committerLuca Bruno <lethalman88@gmail.com>
Sat, 11 Oct 2008 07:42:17 +0000 (09:42 +0200)
apt-pkg/versionmatch.cc
debian/changelog

index 4a426809c9095bc9002137beaf75b4b3904cd89a..5c25c2f7b98cf92e1f12c53961aa51dc46110935 100644 (file)
@@ -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;
    
index 9f73c25ccd87d59e39086113d621f9ba732b4824..b88df66a92aa535593e1dd1e98f9b6e93b2830fd 100644 (file)
@@ -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 <lethalman88@gmail.com>  Sat, 11 Oct 2008 09:17:46 +0200