"len" for "unusual sizeof(size_t)" case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164714
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
{
size_t hash = seed;
const char* cptr = reinterpret_cast<const char*>(ptr);
- for (; clength; --clength)
+ for (; len; --len)
hash = (hash * 131) + *cptr++;
return hash;
}