aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;