mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix compiler warning.
Reported by Christopher Ng.
This commit is contained in:
parent
a4f4f5b835
commit
d0e88930dd
@ -329,12 +329,12 @@ static void err_unwind_win_jit(global_State *g, int errcode)
|
||||
memset(&hist, 0, sizeof(hist));
|
||||
RtlCaptureContext(&ctx);
|
||||
while (1) {
|
||||
uintptr_t frame, base, addr = ctx.CONTEXT_REG_PC;
|
||||
DWORD64 frame, base, addr = ctx.CONTEXT_REG_PC;
|
||||
void *hdata;
|
||||
PRUNTIME_FUNCTION func = RtlLookupFunctionEntry(addr, &base, &hist);
|
||||
if (!func) { /* Found frame without .pdata: must be JIT-compiled code. */
|
||||
ExitNo exitno;
|
||||
uintptr_t stub = lj_trace_unwind(G2J(g), addr - sizeof(MCode), &exitno);
|
||||
uintptr_t stub = lj_trace_unwind(G2J(g), (uintptr_t)(addr - sizeof(MCode)), &exitno);
|
||||
if (stub) { /* Jump to side exit to unwind the trace. */
|
||||
ctx.CONTEXT_REG_PC = stub;
|
||||
G2J(g)->exitcode = errcode;
|
||||
|
Loading…
Reference in New Issue
Block a user