(HASHFUNCTION): Insure nonnegative hash even if addresses are negative.

From-SVN: r3473
This commit is contained in:
Richard Stallman 1993-02-15 07:18:09 +00:00
parent 8309117694
commit b16f586d98

View File

@ -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 ()