diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-03-05 21:06:57 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-03-05 21:06:57 +0000 |
commit | d5e63fce337455aab205430400bc8794560198e8 (patch) | |
tree | 0178e5ab1f603a42eae35feb51265a55c335bb17 /libobjc/objc/hash.h | |
parent | c18b95e5e467a28d54501891b4884851944d9fd1 (diff) | |
download | gcc-d5e63fce337455aab205430400bc8794560198e8.zip gcc-d5e63fce337455aab205430400bc8794560198e8.tar.gz gcc-d5e63fce337455aab205430400bc8794560198e8.tar.bz2 |
hash.h (hash_string, [...]): Add type-casts to make Objective-C++ happy.
2004-03-05 Ziemowit Laski <zlaski@apple.com>
* objc/hash.h (hash_string, compare_strings):
Add type-casts to make Objective-C++ happy.
* objc/typedstream.h (objc_get_stream_class_version):
Rename parameter from 'class' to 'class_name' to make
Objective-C++ happy.
From-SVN: r78986
Diffstat (limited to 'libobjc/objc/hash.h')
-rw-r--r-- | libobjc/objc/hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/objc/hash.h b/libobjc/objc/hash.h index 02aca6e..4c54531 100644 --- a/libobjc/objc/hash.h +++ b/libobjc/objc/hash.h @@ -172,7 +172,7 @@ hash_string (cache_ptr cache, const void *key) { unsigned int ret = 0; unsigned int ctr = 0; - const char *ckey = key; + const char *ckey = (const char *) key; while (*ckey) { ret ^= *ckey++ << ctr; @@ -200,7 +200,7 @@ compare_strings (const void *k1, const void *k2) else if (k1 == 0 || k2 == 0) return 0; else - return ! strcmp (k1, k2); + return ! strcmp ((const char *) k1, (const char *) k2); } |