From: Richard Stallman Date: Mon, 15 Feb 1993 07:18:09 +0000 (+0000) Subject: (HASHFUNCTION): Insure nonnegative hash even if addresses are negative. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b16f586d98c6b045fa9cef1f2285061120d27c62;p=gcc.git (HASHFUNCTION): Insure nonnegative hash even if addresses are negative. From-SVN: r3473 --- 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 ()