From 9064a832bf2f02e2fd26c62ee867dd779797235a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 26 Apr 2020 18:19:43 +0200 Subject: Avoid -Wuseless-cast to int Reported-By: gcc -Wuseless-cast Gbp-Dch: Ignore --- apt-pkg/policy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/policy.cc') diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 034fce79c..761a6ede1 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -298,9 +298,9 @@ APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver, b out bogus entries that may be due to config-file states, or other. */ if (file.File().Flagged(pkgCache::Flag::NotSource) && Ver.ParentPkg().CurrentVer() != Ver) - priority = std::max(priority, static_cast(-1)); + priority = std::max(priority, -1); else - priority = std::max(priority, static_cast(GetPriority(file.File()))); + priority = std::max(priority, GetPriority(file.File())); } return priority == std::numeric_limits::min() ? 0 : priority; -- cgit v1.2.3