From 0a1e90f3dfcb4929504829bd1e4213e946fab556 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 7 Nov 2001 01:08:26 +0000 Subject: [PATCH] make our 64-bit platforms happy and use the macro to cast from pointer to int. --- widget/src/xpwidgets/nsXPLookAndFeel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/xpwidgets/nsXPLookAndFeel.cpp b/widget/src/xpwidgets/nsXPLookAndFeel.cpp index b2eefb4aec4d..bdaecdbdbfba 100644 --- a/widget/src/xpwidgets/nsXPLookAndFeel.cpp +++ b/widget/src/xpwidgets/nsXPLookAndFeel.cpp @@ -242,7 +242,7 @@ static int PR_CALLBACK colorPrefChanged (const char *newpref, void *data) nscolor thecolor; if (NS_SUCCEEDED(NS_ColorNameToRGB(NS_ConvertASCIItoUCS2(colorStr), &thecolor))) { - PRInt32 id = (PRInt32) data; + PRInt32 id = NS_PTR_TO_INT32(data); CACHE_COLOR(id, thecolor); #ifdef DEBUG_akkana printf("====== Changed color pref %s to 0x%lx\n",