Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: nss/lib/base/hash.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/lib/base/hash.c
diff --git a/nss/lib/base/hash.c b/nss/lib/base/hash.c
index 514e547ac8a9400722fe37b2452a165a470e4b31..7eaaf6ff0a5ce1f391cef2e3828cef2847fca246 100644
--- a/nss/lib/base/hash.c
+++ b/nss/lib/base/hash.c
@@ -51,9 +51,7 @@ nss_identity_hash
const void *key
)
{
- PRUint32 i = (PRUint32)key;
- PR_ASSERT(sizeof(PLHashNumber) == sizeof(PRUint32));
- return (PLHashNumber)i;
+ return (PLHashNumber)((char *)key - (char *)NULL);
}
static PLHashNumber

Powered by Google App Engine
This is Rietveld 408576698