From Andrew Chatham: fix bug in 64-bit hash.
authorIan Lance Taylor <iant@google.com>
Fri, 5 Oct 2007 17:36:31 +0000 (17:36 +0000)
committerIan Lance Taylor <iant@google.com>
Fri, 5 Oct 2007 17:36:31 +0000 (17:36 +0000)
gold/stringpool.cc

index 14556ce1e9a9e456193cb471604cc08f29397116..d8b52119aaa085229a13be1d4a4a32fe4f6d29d4 100644 (file)
@@ -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;
This page took 0.024857 seconds and 4 git commands to generate.