This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug


m32c-elf failed to build because clength was undefined.  Ok?


Index: libstdc++-v3/libsupc++/hash_bytes.cc
===================================================================
--- libstdc++-v3/libsupc++/hash_bytes.cc	(revision 164701)
+++ libstdc++-v3/libsupc++/hash_bytes.cc	(working copy)
@@ -169,13 +169,13 @@ namespace std
   // Dummy hash implementation for unusual sizeof(size_t).
   size_t
   _Hash_bytes(const void* ptr, size_t len, size_t seed)
   {
     size_t hash = seed;
     const char* cptr = reinterpret_cast<const char*>(ptr);
-    for (; clength; --clength)
+    for (; len; --len)
       hash = (hash * 131) + *cptr++;
     return hash;
   }
 
   size_t
   _Fnv_hash_bytes(const void* ptr, size_t len, size_t seed)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]