Index: src/runtime/selector.m ================================================================== --- src/runtime/selector.m +++ src/runtime/selector.m @@ -33,11 +33,11 @@ const char *name; if (selectors == NULL) selectors = objc_sparsearray_new(); - hash = objc_hash_string(sel->name) >> 8; + hash = objc_hash_string(sel->name) & 0xFFFFFF; while (hash <= 0xFFFFFF && (name = objc_sparsearray_get(selectors, hash)) != NULL) { if (!strcmp(name, sel->name)) { rsel->uid = hash;