aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-24 11:14:44 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-24 11:14:44 -0400
commit963342adbf17cc7d3ae9bfd7c64d95b214b63e19 (patch)
tree5275055f3e68c146e10e505bba61a67c85909759
parent7ca4e06e18ff51579d513440538da143eee1b805 (diff)
downloadgcc-963342adbf17cc7d3ae9bfd7c64d95b214b63e19.zip
gcc-963342adbf17cc7d3ae9bfd7c64d95b214b63e19.tar.gz
gcc-963342adbf17cc7d3ae9bfd7c64d95b214b63e19.tar.bz2
(HASHFUNCTION): Cast pointers to widest int type.
From-SVN: r4205
-rw-r--r--gcc/objc/objc-act.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index ec4cf3c..6a973b6 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -4747,7 +4747,9 @@ build_ivar_reference (id)
#define HASH_ALLOC_LIST_SIZE 170
#define ATTR_ALLOC_LIST_SIZE 170
#define SIZEHASHTABLE 257
-#define HASHFUNCTION(key) ((int)key & 0x7fffffff) /* make positive */
+
+/* make positive */
+#define HASHFUNCTION(key) ((HOST_WIDE_INT) key & 0x7fffffff)
static void
hash_init ()