summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2010-09-28 22:00:09 -0400
committerDJ Delorie <dj@gcc.gnu.org>2010-09-28 22:00:09 -0400
commit3f984eefb1a566600f545f0d0c7289d6c3d7657a (patch)
tree6b27bbd5e5651434239f240377414e25ffd22d7f
parent6dace308dec27f9a57b941d7120d7c888e0b74ae (diff)
downloadgcc-3f984eefb1a566600f545f0d0c7289d6c3d7657a.tar.gz
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/libsupc++/hash_bytes.cc2
2 files changed, 6 insertions, 1 deletions
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 <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.
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<const char*>(ptr);
- for (; clength; --clength)
+ for (; len; --len)
hash = (hash * 131) + *cptr++;
return hash;
}