diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-11-23 11:32:42 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-11-23 11:32:42 +0200 |
commit | 37e8f803a531caac144b075a127f48b7c38fc747 (patch) | |
tree | 7d71348a2c003a0f5811e0d37dd6ece7dc2387c8 | |
parent | 6398d338c6441f3b967a2633bbc9df4709bcb258 (diff) | |
download | apk-tools-37e8f803a531caac144b075a127f48b7c38fc747.tar.gz apk-tools-37e8f803a531caac144b075a127f48b7c38fc747.tar.bz2 apk-tools-37e8f803a531caac144b075a127f48b7c38fc747.tar.xz apk-tools-37e8f803a531caac144b075a127f48b7c38fc747.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index 249ddae..7b36978 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; |