diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-29 02:00:09 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-29 02:00:09 +0000 |
commit | 385dfba2b2ec738e0f4b01ffaa6290652ae4a14c (patch) | |
tree | 6b27bbd5e5651434239f240377414e25ffd22d7f /libstdc++-v3/libsupc++/hash_bytes.cc | |
parent | 78ca2689633485941c1425609e9d4987ff61d2b8 (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.cc | 2 |
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; } |