summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-11 10:20:58 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-11 13:59:15 +0200
commit9b7d159f7c323a16b26c365d7fa1e2886f5ef278 (patch)
tree7a8df28951e8183bdd2c702b16c2c8ef3116b555 /apt-pkg/policy.cc
parent50bac72818c722ea4d3490fd1d2e91685265c51d (diff)
Replace INT_MIN with std::numeric_limits<int>::min
This should fix travis compilation errors. Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r--apt-pkg/policy.cc4
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)
{