From e7a8f21560e5de048f92269b06bd7c849aa343dd Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Sun, 12 Oct 2008 13:26:58 -0400 Subject: [PATCH] Fixing bug due to missing parentheses. Bug 344258 followup, no bug. --- content/base/src/nsDocument.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/base/src/nsDocument.h b/content/base/src/nsDocument.h index 197ac9cccdb..a38f0a88588 100644 --- a/content/base/src/nsDocument.h +++ b/content/base/src/nsDocument.h @@ -310,8 +310,8 @@ public: static KeyTypePointer KeyToPointer(KeyType& aKey) { return &aKey; } static PLDHashNumber HashKey(KeyTypePointer aKey) { - return NS_PTR_TO_INT32(aKey->mCallback) >> 2 + - NS_PTR_TO_INT32(aKey->mData); + return (NS_PTR_TO_INT32(aKey->mCallback) >> 2) ^ + (NS_PTR_TO_INT32(aKey->mData)); } enum { ALLOW_MEMMOVE = PR_TRUE };