* [patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug
@ 2010-09-29 14:13 DJ Delorie
2010-09-29 14:38 ` Paolo Carlini
0 siblings, 1 reply; 3+ messages in thread
From: DJ Delorie @ 2010-09-29 14:13 UTC (permalink / raw)
To: gcc-patches, libstdc++
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug
2010-09-29 14:13 [patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug DJ Delorie
@ 2010-09-29 14:38 ` Paolo Carlini
2010-09-29 15:55 ` DJ Delorie
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Carlini @ 2010-09-29 14:38 UTC (permalink / raw)
To: DJ Delorie; +Cc: gcc-patches, libstdc++
On 09/28/2010 11:13 PM, DJ Delorie wrote:
> m32c-elf failed to build because clength was undefined. Ok?
>
Yes, it's ok, thanks.
Paolo.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug
2010-09-29 14:38 ` Paolo Carlini
@ 2010-09-29 15:55 ` DJ Delorie
0 siblings, 0 replies; 3+ messages in thread
From: DJ Delorie @ 2010-09-29 15:55 UTC (permalink / raw)
To: Paolo Carlini; +Cc: gcc-patches, libstdc++
Thanks, committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-29 2:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-29 14:13 [patch] libstdc++-v3/libsupc++/hash_bytes.cc clength bug DJ Delorie
2010-09-29 14:38 ` Paolo Carlini
2010-09-29 15:55 ` DJ Delorie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).