Sync these mirrored sources with their primaries at js/src/jsdhash.[ch] (see bug 62164, r=shaver, sr=jband).

This commit is contained in:
brendan%mozilla.org 2002-02-23 10:04:29 +00:00
Родитель e5a2d59abf
Коммит 3823b68fa9
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -100,7 +100,7 @@ PL_DHashMatchEntryStub(PLDHashTable *table,
const PLDHashEntryHdr *entry, const PLDHashEntryHdr *entry,
const void *key) const void *key)
{ {
PLDHashEntryStub *stub = (PLDHashEntryStub *)entry; const PLDHashEntryStub *stub = (const PLDHashEntryStub *)entry;
return stub->key == key; return stub->key == key;
} }
@ -459,8 +459,7 @@ ChangeTable(PLDHashTable *table, int deltaLog2)
oldEntry->keyHash, PL_DHASH_ADD); oldEntry->keyHash, PL_DHASH_ADD);
PR_ASSERT(PL_DHASH_ENTRY_IS_FREE(newEntry)); PR_ASSERT(PL_DHASH_ENTRY_IS_FREE(newEntry));
moveEntry(table, oldEntry, newEntry); moveEntry(table, oldEntry, newEntry);
newEntry->keyHash = newEntry->keyHash = oldEntry->keyHash;
oldEntry->keyHash | (newEntry->keyHash & COLLISION_FLAG);
} }
oldEntryAddr += entrySize; oldEntryAddr += entrySize;
} }

Просмотреть файл

@ -235,7 +235,8 @@ typedef void
* moved via moveEntry callbacks. * moved via moveEntry callbacks.
*/ */
typedef const void * typedef const void *
(* PR_CALLBACK PLDHashGetKey) (PLDHashTable *table, PLDHashEntryHdr *entry); (* PR_CALLBACK PLDHashGetKey) (PLDHashTable *table,
PLDHashEntryHdr *entry);
/* /*
* Compute the hash code for a given key to be looked up, added, or removed * Compute the hash code for a given key to be looked up, added, or removed