зеркало из https://github.com/mozilla/pjs.git
Sync these mirrored sources with their primaries at js/src/jsdhash.[ch] (see bug 62164, r=shaver, sr=jband).
This commit is contained in:
Родитель
e5a2d59abf
Коммит
3823b68fa9
|
@ -100,7 +100,7 @@ PL_DHashMatchEntryStub(PLDHashTable *table,
|
|||
const PLDHashEntryHdr *entry,
|
||||
const void *key)
|
||||
{
|
||||
PLDHashEntryStub *stub = (PLDHashEntryStub *)entry;
|
||||
const PLDHashEntryStub *stub = (const PLDHashEntryStub *)entry;
|
||||
|
||||
return stub->key == key;
|
||||
}
|
||||
|
@ -459,8 +459,7 @@ ChangeTable(PLDHashTable *table, int deltaLog2)
|
|||
oldEntry->keyHash, PL_DHASH_ADD);
|
||||
PR_ASSERT(PL_DHASH_ENTRY_IS_FREE(newEntry));
|
||||
moveEntry(table, oldEntry, newEntry);
|
||||
newEntry->keyHash =
|
||||
oldEntry->keyHash | (newEntry->keyHash & COLLISION_FLAG);
|
||||
newEntry->keyHash = oldEntry->keyHash;
|
||||
}
|
||||
oldEntryAddr += entrySize;
|
||||
}
|
||||
|
|
|
@ -235,7 +235,8 @@ typedef void
|
|||
* moved via moveEntry callbacks.
|
||||
*/
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче