projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
058f233
)
From Andrew Chatham: fix bug in 64-bit hash.
author
Ian Lance Taylor
<iant@google.com>
Fri, 5 Oct 2007 17:36:31 +0000
(17:36 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Fri, 5 Oct 2007 17:36:31 +0000
(17:36 +0000)
gold/stringpool.cc
patch
|
blob
|
history
diff --git
a/gold/stringpool.cc
b/gold/stringpool.cc
index
14556ce
..
d8b5211
100644
(file)
--- 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;