aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-11-23 11:32:42 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-11-23 11:32:42 +0200
commit37e8f803a531caac144b075a127f48b7c38fc747 (patch)
tree7d71348a2c003a0f5811e0d37dd6ece7dc2387c8
parent6398d338c6441f3b967a2633bbc9df4709bcb258 (diff)
downloadaports-37e8f803a531caac144b075a127f48b7c38fc747.tar.gz
aports-37e8f803a531caac144b075a127f48b7c38fc747.tar.bz2
aports-37e8f803a531caac144b075a127f48b7c38fc747.tar.xz
db: fix hash lookups on 64-bit machines
The hash is 'unsigned long' everywhere which is 64-bits (on 64-bit boxes). Fix the one instance of it being 'unsigned int' since that would be 32-bit and cause lookup failures on 64-bit boxes.
-rw-r--r--src/apk_database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 249ddaeb3a..7b3697893b 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -44,7 +44,7 @@ struct apk_db_file {
struct apk_db_dir {
apk_hash_node hash_node;
- unsigned int hash;
+ unsigned long hash;
struct hlist_head files;
struct apk_db_dir *parent;