From: Ian Lance Taylor Date: Fri, 5 Oct 2007 17:36:31 +0000 (+0000) Subject: From Andrew Chatham: fix bug in 64-bit hash. X-Git-Tag: sid-snapshot-20071101~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fb69fac7ae5550eeb0d89a2aca5bdfc7a5fbb27;p=external%2Fbinutils.git From Andrew Chatham: fix bug in 64-bit hash. --- 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_hash::operator()( const char* p = reinterpret_cast(s); for (size_t i = 0; i < sizeof(Stringpool_char); ++i) { - result &= (size_t) *p++; + result ^= (size_t) *p++; result *= 1099511628211ULL; } ++s;