summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/hash_bytes.cc
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 02:00:09 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 02:00:09 +0000
commit385dfba2b2ec738e0f4b01ffaa6290652ae4a14c (patch)
tree6b27bbd5e5651434239f240377414e25ffd22d7f /libstdc++-v3/libsupc++/hash_bytes.cc
parent78ca2689633485941c1425609e9d4987ff61d2b8 (diff)
* libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with
"len" for "unusual sizeof(size_t)" case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164714 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/hash_bytes.cc')
-rw-r--r--libstdc++-v3/libsupc++/hash_bytes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/hash_bytes.cc b/libstdc++-v3/libsupc++/hash_bytes.cc
index e9a3812664e8..a247a11492e5 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;
}