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 |