fix equal hashing on symbols
svn: r1738
This commit is contained in:
parent
dd75f93aee
commit
a1d1006ab1
|
@ -1106,7 +1106,7 @@ static long equal_hash_key(Scheme_Object *o, long k)
|
|||
Scheme_Symbol *s = (Scheme_Symbol *)o;
|
||||
if (!(MZ_OPT_HASH_KEY(&s->iso) & 0x1)) {
|
||||
/* Interned. Make key depend only on the content. */
|
||||
if (!MZ_OPT_HASH_KEY(&s->iso) & 0xFFFC) {
|
||||
if (!(MZ_OPT_HASH_KEY(&s->iso) & 0xFFFC)) {
|
||||
int i, h = 0;
|
||||
for (i = s->len; i--; ) {
|
||||
h += (h << 5) + h + s->s[i];
|
||||
|
|
Loading…
Reference in New Issue
Block a user