mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
* objc/hash.h (hash_string): Don't use a cast as an lvalue.
From-SVN: r72722
This commit is contained in:
parent
d4d1ebc191
commit
beca20d2a0
@ -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.
|
||||
|
@ -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 *);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user