From cc270ac04affb372ce33d6db946c98eea97fb511 Mon Sep 17 00:00:00 2001 From: "db48x%yahoo.com" Date: Tue, 17 Oct 2006 04:00:01 +0000 Subject: [PATCH] bug 356734: nsBaseHashtable.h casts a pointer to a PRBool, which gives an error in 64 bit gcc r=dbradly, sr=biesi --- xpcom/glue/nsBaseHashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/glue/nsBaseHashtable.h b/xpcom/glue/nsBaseHashtable.h index d876d0ce0f8c..b05687eb5c47 100644 --- a/xpcom/glue/nsBaseHashtable.h +++ b/xpcom/glue/nsBaseHashtable.h @@ -276,7 +276,7 @@ public: ~nsBaseHashtableMT(); PRBool Init(PRUint32 initSize = PL_DHASH_MIN_SIZE); - PRBool IsInitialized() const { return (PRBool) mLock; } + PRBool IsInitialized() const { return mLock != nsnull; } PRUint32 Count() const; PRBool Get(KeyType aKey, UserDataType* pData) const; PRBool Put(KeyType aKey, UserDataType aData);