From df4b92bd1df204e7fb0d22e73e143d205d74aea6 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 7 Jan 2020 22:37:36 +0100 Subject: Rename _count() macro to APT_ARRAY_SIZE() --- methods/gpgv.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'methods') 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(id) < _count(Digests)) { + if (id >= 0 && static_cast(id) < APT_ARRAY_SIZE(Digests)) + { return Digests[id]; } else { return Digests[0]; -- cgit v1.2.3