Commit b16f586d by Richard Stallman

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

From-SVN: r3473
parent 83091176
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment