]> git.saurik.com Git - apt.git/commitdiff
Fix incorrect comparison between signed/unsigned
authorMichael Vogt <mvo@debian.org>
Thu, 23 Oct 2014 18:32:01 +0000 (14:32 -0400)
committerMichael Vogt <mvo@debian.org>
Thu, 23 Oct 2014 18:32:01 +0000 (14:32 -0400)
Git-Dch: ignore

apt-pkg/deb/dpkgpm.cc

index 2d26493f05cfc37a0e74b18a9869ce87ab5cf2b7..7bbf18cba3b63c3021f5387c3a9722d85f1e4ad2 100644 (file)
@@ -1252,7 +1252,7 @@ bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress)
    unsigned int const MaxArgs = _config->FindI("Dpkg::MaxArgs",32*1024);
 
    // try to figure out the max environment size
-   unsigned int OSArgMax = sysconf(_SC_ARG_MAX);
+   int OSArgMax = sysconf(_SC_ARG_MAX);
    if(OSArgMax < 0)
       OSArgMax = 32*1024;
    OSArgMax -= EnvironmentSize() - 2*1024;