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 2d26493..7bbf18c 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;