diff --git a/xpcom/ds/nsTHashtable.h b/xpcom/ds/nsTHashtable.h index da4227f54949..7f568c36fcaf 100644 --- a/xpcom/ds/nsTHashtable.h +++ b/xpcom/ds/nsTHashtable.h @@ -451,7 +451,7 @@ bool nsTHashtable::s_MatchEntry(const PLDHashEntryHdr* aEntry, const void* aKey) { - return ((const EntryType*)aEntry)->KeyEquals( + return (static_cast(aEntry))->KeyEquals( static_cast(aKey)); }