OSDN Git Service

* libsupc++/hash_bytes.cc (_Hash_bytes): Replace "clength" with
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2010 02:00:09 +0000 (02:00 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2010 02:00:09 +0000 (02:00 +0000)
"len" for "unusual sizeof(size_t)" case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164714 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/hash_bytes.cc

index 7d05785..5bb2125 100644 (file)
@@ -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.
index e9a3812..a247a11 100644 (file)
@@ -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;
   }