From bb8e1cff7e430039d65e795e3b90f37a0661d796 Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Thu, 1 Feb 2018 00:04:36 +0100 Subject: [PATCH] Bug 1434726 - Early startup crash on Linux sparc64 in HashIIDPtrKey Origin: not yet exist Bug-Debian: not yet exist Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1434726 Applied-Upstream: TBD Gbp-Pq: Topic porting-sparc64 Gbp-Pq: Name Bug-1434726-Early-startup-crash-on-Linux-sparc64-in-HashI.patch --- js/xpconnect/src/XPCMaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/xpconnect/src/XPCMaps.cpp b/js/xpconnect/src/XPCMaps.cpp index 5abdcf1658..98e126fb2e 100644 --- a/js/xpconnect/src/XPCMaps.cpp +++ b/js/xpconnect/src/XPCMaps.cpp @@ -21,7 +21,7 @@ using namespace mozilla; // nsID, not the hash of the pointer to the nsID. static PLDHashNumber HashIIDPtrKey(const void* key) { - return HashGeneric(*((uintptr_t*)key)); + return HashGeneric(((nsID*)key)->m0); } static bool MatchIIDPtrKey(const PLDHashEntryHdr* entry, const void* key) { -- 2.30.2