From 6f8d9b52358c16bef870a53ace4360d43c7978d5 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 9 Sep 2011 15:07:22 +0200 Subject: [PATCH] Bug 680868 - pldhash.cpp fails to compile on mingw-w64 r=benjamin --- xpcom/glue/pldhash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/glue/pldhash.cpp b/xpcom/glue/pldhash.cpp index eea85264a2c..774c38e97f6 100644 --- a/xpcom/glue/pldhash.cpp +++ b/xpcom/glue/pldhash.cpp @@ -135,7 +135,7 @@ PL_DHashStringKey(PLDHashTable *table, const void *key) PLDHashNumber PL_DHashVoidPtrKeyStub(PLDHashTable *table, const void *key) { - return (PLDHashNumber)(unsigned long)key >> 2; + return (PLDHashNumber)(PRPtrdiff)key >> 2; } PRBool