Commit 3f984eef by DJ Delorie Committed by DJ Delorie

hash_bytes.cc (_Hash_bytes): Replace "clength" with "len" for "unusual sizeof(size_t)" case.

* libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with
"len" for "unusual sizeof(size_t)" case.

From-SVN: r164714
parent 6dace308
2010-09-28 DJ Delorie <dj@redhat.com>
* libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with
"len" for "unusual sizeof(size_t)" case.
2010-09-28 Matt Austern <austern@google.com>
* testsuite/20_util/hash/chi2_quality.cc: New.
......
......@@ -172,7 +172,7 @@ namespace std
{
size_t hash = seed;
const char* cptr = reinterpret_cast<const char*>(ptr);
for (; clength; --clength)
for (; len; --len)
hash = (hash * 131) + *cptr++;
return hash;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment