diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-11 10:20:58 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-11 13:59:15 +0200 |
commit | 9b7d159f7c323a16b26c365d7fa1e2886f5ef278 (patch) | |
tree | 7a8df28951e8183bdd2c702b16c2c8ef3116b555 | |
parent | 50bac72818c722ea4d3490fd1d2e91685265c51d (diff) |
Replace INT_MIN with std::numeric_limits<int>::min
This should fix travis compilation errors.
Gbp-Dch: ignore
-rw-r--r-- | apt-pkg/policy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 47b0f47fb..ea6621e13 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -374,7 +374,7 @@ APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver) return VerPins[Ver->ID].Priority; - int priority = INT_MIN; + int priority = std::numeric_limits<int>::min(); for (pkgCache::VerFileIterator file = Ver.FileList(); file.end() == false; file++) { /* If this is the status file, and the current version is not the @@ -390,7 +390,7 @@ APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver) } } - return priority == INT_MIN ? 0 : priority; + return priority == std::numeric_limits<int>::min() ? 0 : priority; } APT_PURE signed short pkgPolicy::GetPriority(pkgCache::PkgFileIterator const &File) { |