summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:37:36 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:51:41 +0100
commitdf4b92bd1df204e7fb0d22e73e143d205d74aea6 (patch)
tree36c2ddc9d4b0d1457ebcd8cb98623c53abd1c9c7 /methods
parent1b3e0a6a4bf673bd7d1da4a481eeb0a436430be8 (diff)
Rename _count() macro to APT_ARRAY_SIZE()
Diffstat (limited to 'methods')
-rw-r--r--methods/gpgv.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc
index 660041764..1ca62557c 100644
--- a/methods/gpgv.cc
+++ b/methods/gpgv.cc
@@ -83,7 +83,8 @@ static constexpr Digest Digests[] = {
static Digest FindDigest(std::string const & Digest)
{
int id = atoi(Digest.c_str());
- if (id >= 0 && static_cast<unsigned>(id) < _count(Digests)) {
+ if (id >= 0 && static_cast<unsigned>(id) < APT_ARRAY_SIZE(Digests))
+ {
return Digests[id];
} else {
return Digests[0];