From 7ca14d209c9dd65c03f6770531a6a23a8afdc7ca Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sat, 10 Jan 2015 12:26:35 -0800 Subject: [PATCH] Use upx_uint64_t instead of "unsigned long". --- src/p_lx_elf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index e4f2ec60..458761b0 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -3455,13 +3455,13 @@ Elf64_Sym const *PackLinuxElf64::elf_lookup(char const *name) const unsigned const symbias = get_te32(&gashtab[1]); unsigned const n_bitmask = get_te32(&gashtab[2]); unsigned const gnu_shift = get_te32(&gashtab[3]); - unsigned long const *const bitmask = (unsigned long const *)&gashtab[4]; - unsigned const *const buckets = (unsigned const *)&bitmask[n_bitmask]; + upx_uint64_t const *const bitmask = (upx_uint64_t const *)&gashtab[4]; + unsigned const *const buckets = (unsigned const *)&bitmask[n_bitmask]; unsigned const h = gnu_hash(name); unsigned const hbit1 = 077& h; unsigned const hbit2 = 077& (h>>gnu_shift); - unsigned long const w = get_te64(&bitmask[(n_bitmask -1) & (h>>6)]); + upx_uint64_t const w = get_te64(&bitmask[(n_bitmask -1) & (h>>6)]); if (1& (w>>hbit1) & (w>>hbit2)) { unsigned bucket = get_te32(&buckets[h % n_bucket]);