From 3f984eefb1a566600f545f0d0c7289d6c3d7657a Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 28 Sep 2010 22:00:09 -0400 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/libsupc++/hash_bytes.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7d05785b6b6..5bb212529c2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-09-28 DJ Delorie + + * libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with + "len" for "unusual sizeof(size_t)" case. + 2010-09-28 Matt Austern * testsuite/20_util/hash/chi2_quality.cc: New. diff --git a/libstdc++-v3/libsupc++/hash_bytes.cc b/libstdc++-v3/libsupc++/hash_bytes.cc index e9a3812664e..a247a11492e 100644 --- a/libstdc++-v3/libsupc++/hash_bytes.cc +++ b/libstdc++-v3/libsupc++/hash_bytes.cc @@ -172,7 +172,7 @@ namespace std { size_t hash = seed; const char* cptr = reinterpret_cast(ptr); - for (; clength; --clength) + for (; len; --len) hash = (hash * 131) + *cptr++; return hash; }