Bug 510040 - Fix JS debugger crash on 64-bit: don't truncate PC to jsuint in jsds_FilterHook. r=timeless

This caused Firefox to segfault in 64-bit builds when starting up with the
Chromebug extension loaded.
This commit is contained in:
Marti Raudsepp 2009-08-12 22:09:29 +03:00
parent 55da0c95da
commit adf94907af

View File

@ -376,7 +376,7 @@ jsds_FilterHook (JSDContext *jsdc, JSDThreadState *state)
if (!script)
return PR_TRUE;
jsuint pc = JSD_GetPCForStackFrame (jsdc, state, frame);
jsuword pc = JSD_GetPCForStackFrame (jsdc, state, frame);
nsDependentCString url(JSD_GetScriptFilename (jsdc, script));
if (url.IsEmpty()) {