diff options
| author | Julian Andres Klode <jak@debian.org> | 2020-01-07 22:35:10 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2020-01-07 22:35:10 +0000 |
| commit | d3636f2666b77eb17b261300cb91eb912e2789c6 (patch) | |
| tree | 04aef1499999672f8e53ee1b7b56023844d519b6 /apt-pkg/pkgcache.cc | |
| parent | 1b3e0a6a4bf673bd7d1da4a481eeb0a436430be8 (diff) | |
| parent | b911b2f6edaa8ee45b1f860ddf0cf061ccc96e1f (diff) | |
Merge branch 'pu/macro-cleanup' into 'master'
Pu/macro cleanup
See merge request apt-team/apt!91
Diffstat (limited to 'apt-pkg/pkgcache.cc')
| -rw-r--r-- | apt-pkg/pkgcache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 160c58273..f8ab423ae 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -381,7 +381,7 @@ const char *pkgCache::Priority(unsigned char Prio) { const char *Mapping[] = {0,_("required"),_("important"),_("standard"), _("optional"),_("extra")}; - if (Prio < _count(Mapping)) + if (Prio < APT_ARRAY_SIZE(Mapping)) return Mapping[Prio]; return 0; } |
