зеркало из https://github.com/mozilla/pjs.git
Fixing bug due to missing parentheses. Bug 344258 followup, no bug.
This commit is contained in:
Родитель
b2a40dc206
Коммит
e7a8f21560
|
@ -310,8 +310,8 @@ public:
|
||||||
static KeyTypePointer KeyToPointer(KeyType& aKey) { return &aKey; }
|
static KeyTypePointer KeyToPointer(KeyType& aKey) { return &aKey; }
|
||||||
static PLDHashNumber HashKey(KeyTypePointer aKey)
|
static PLDHashNumber HashKey(KeyTypePointer aKey)
|
||||||
{
|
{
|
||||||
return NS_PTR_TO_INT32(aKey->mCallback) >> 2 +
|
return (NS_PTR_TO_INT32(aKey->mCallback) >> 2) ^
|
||||||
NS_PTR_TO_INT32(aKey->mData);
|
(NS_PTR_TO_INT32(aKey->mData));
|
||||||
}
|
}
|
||||||
enum { ALLOW_MEMMOVE = PR_TRUE };
|
enum { ALLOW_MEMMOVE = PR_TRUE };
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче