Explorar o código

Fix incorrect comparison between signed/unsigned

Git-Dch: ignore
Michael Vogt %!s(int64=11) %!d(string=hai) anos
pai
achega
28460cb278
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apt-pkg/deb/dpkgpm.cc

+ 1 - 1
apt-pkg/deb/dpkgpm.cc

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