mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 04:27:41 +00:00
make our 64-bit platforms happy and use the macro to cast from pointer to int.
This commit is contained in:
parent
de636441d9
commit
0a1e90f3df
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user