diff options
author | Julian Andres Klode <jak@debian.org> | 2016-01-03 17:39:39 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-01-03 17:42:17 +0100 |
commit | 38a5b1ceeeca6ff530a2816a39bcd10d14c85d33 (patch) | |
tree | ce479b562cb96f11d1f8d1cd3cc9deaec05ee702 /apt-pkg/pkgcache.cc | |
parent | 6d7fc45ed4e22163bba6478c7523f4509d200c58 (diff) |
apt-cache: stats: Show a table utilization as percentage
Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 347a0954e..4d8b9bc41 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -210,7 +210,7 @@ map_id_t pkgCache::sHash(const string &Str) const { uint32_t Hash = 5381; for (string::const_iterator I = Str.begin(); I != Str.end(); ++I) - Hash = 33 * Hash + tolower_ascii(*I); + Hash = 33 * Hash + tolower_ascii((signed char)*I); return Hash % HeaderP->GetHashTableSize(); } @@ -218,7 +218,7 @@ map_id_t pkgCache::sHash(const char *Str) const { uint32_t Hash = 5381; for (const char *I = Str; *I != 0; ++I) - Hash = 33 * Hash + tolower_ascii(*I); + Hash = 33 * Hash + tolower_ascii((signed char)*I); return Hash % HeaderP->GetHashTableSize(); } |