summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-17 14:34:45 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-18 13:39:26 +0100
commit8c10048dce06ee0f160c86a6df07f0e6d2c34242 (patch)
tree7d18b03a24c3ce41c76904cd6ccb8430e7638dc4 /apt-pkg/pkgcachegen.cc
parent62683ed6459e874119f3346d8be66b85e8a90533 (diff)
Use a 32-bit djb VersionHash instead of CRC-16
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index dfac0ae1c..5a7272e84 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -376,7 +376,7 @@ bool pkgCacheGenerator::MergeListVersion(ListParser &List, pkgCache::PkgIterator
map_pointer_t *LastVer = &Pkg->VersionList;
void const * oldMap = Map.Data();
- unsigned short const Hash = List.VersionHash();
+ auto Hash = List.VersionHash();
if (Ver.end() == false)
{
/* We know the list is sorted so we use that fact in the search.
@@ -849,7 +849,7 @@ bool pkgCacheGenerator::NewFileVer(pkgCache::VerIterator &Ver,
map_pointer_t pkgCacheGenerator::NewVersion(pkgCache::VerIterator &Ver,
APT::StringView const &VerStr,
map_pointer_t const ParentPkg,
- unsigned short const Hash,
+ uint32_t Hash,
map_pointer_t const Next)
{
// Get a structure
@@ -1234,7 +1234,7 @@ bool pkgCacheListParser::NewProvidesAllArch(pkgCache::VerIterator &Ver, StringVi
return true;
}
/*}}}*/
-bool pkgCacheListParser::SameVersion(unsigned short const Hash, /*{{{*/
+bool pkgCacheListParser::SameVersion(uint32_t Hash, /*{{{*/
pkgCache::VerIterator const &Ver)
{
return Hash == Ver->Hash;