aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-05 17:36:31 +0000
committerIan Lance Taylor <iant@google.com>2007-10-05 17:36:31 +0000
commit2fb69fac7ae5550eeb0d89a2aca5bdfc7a5fbb27 (patch)
tree1385f4dcac6beaafada242393cca41491db3fbc8 /gold/stringpool.cc
parent058f233b7aff7b34315734b3b3169a7df2e21e49 (diff)
downloadgdb-2fb69fac7ae5550eeb0d89a2aca5bdfc7a5fbb27.zip
gdb-2fb69fac7ae5550eeb0d89a2aca5bdfc7a5fbb27.tar.gz
gdb-2fb69fac7ae5550eeb0d89a2aca5bdfc7a5fbb27.tar.bz2
From Andrew Chatham: fix bug in 64-bit hash.
Diffstat (limited to 'gold/stringpool.cc')
-rw-r--r--gold/stringpool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/stringpool.cc b/gold/stringpool.cc
index 14556ce..d8b5211 100644
--- a/gold/stringpool.cc
+++ b/gold/stringpool.cc
@@ -111,7 +111,7 @@ Stringpool_template<Stringpool_char>::Stringpool_hash::operator()(
const char* p = reinterpret_cast<const char*>(s);
for (size_t i = 0; i < sizeof(Stringpool_char); ++i)
{
- result &= (size_t) *p++;
+ result ^= (size_t) *p++;
result *= 1099511628211ULL;
}
++s;