mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Use correct PC in FFI metamethod error message.
This commit is contained in:
parent
b466641218
commit
afc17b3c1a
@ -660,6 +660,7 @@ LJ_NOINLINE void lj_err_callermsg(lua_State *L, const char *msg)
|
|||||||
frame_func(frame)->c.ffid <= FF_ffi_meta___tostring) {
|
frame_func(frame)->c.ffid <= FF_ffi_meta___tostring) {
|
||||||
L->base = pframe+1;
|
L->base = pframe+1;
|
||||||
L->top = frame;
|
L->top = frame;
|
||||||
|
setcframe_pc(cframe_raw(L->cframe), frame_contpc(frame));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user