* objc/hash.h (hash_string): Don't use a cast as an lvalue.

From-SVN: r72722
This commit is contained in:
Joseph Myers 2003-10-20 22:50:13 +01:00 committed by Joseph Myers
parent d4d1ebc191
commit beca20d2a0
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
* objc/hash.h (hash_string): Don't use a cast as an lvalue.
2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile.in (runtime-info.h): Use MULTIFLAGS.

View File

@ -172,10 +172,10 @@ hash_string (cache_ptr cache, const void *key)
{
unsigned int ret = 0;
unsigned int ctr = 0;
const char *ckey = key;
while (*(const char *) key) {
ret ^= *((const char *) key)++ << ctr;
while (*ckey) {
ret ^= *ckey++ << ctr;
ctr = (ctr + 1) % sizeof (void *);
}