mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 774201 - Avoid pointer to integer cast losing precision on win64 r=billm
This commit is contained in:
parent
c63fb1198f
commit
0eb77ab3d5
@ -3747,7 +3747,7 @@ SetMemoryGCPrefChangedCallback(const char* aPrefName, void* aClosure)
|
||||
PRInt32 pref = Preferences::GetInt(aPrefName, -1);
|
||||
// handle overflow and negative pref values
|
||||
if (pref > 0 && pref < 10000)
|
||||
JS_SetGCParameter(nsJSRuntime::sRuntime, (JSGCParamKey)(long)aClosure, pref);
|
||||
JS_SetGCParameter(nsJSRuntime::sRuntime, (JSGCParamKey)(intptr_t)aClosure, pref);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user