diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 908b10d28ef..6429dfc4c77 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2973,7 +2973,7 @@ build_ivar_reference (id) #define HASH_ALLOC_LIST_SIZE 170 #define ATTR_ALLOC_LIST_SIZE 170 #define SIZEHASHTABLE 257 -#define HASHFUNCTION(key) ((int)key >> 2) /* divide by 4 */ +#define HASHFUNCTION(key) ((int)key & 0x7fffffff) /* make positive */ static void hash_init ()