From afc17b3c1aafbd056c2bbb10ef937ebc10de07ee Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 5 May 2012 22:58:29 +0200 Subject: [PATCH] FFI: Use correct PC in FFI metamethod error message. --- src/lj_err.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lj_err.c b/src/lj_err.c index b46a6dc9..05813cf8 100644 --- a/src/lj_err.c +++ b/src/lj_err.c @@ -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) { L->base = pframe+1; L->top = frame; + setcframe_pc(cframe_raw(L->cframe), frame_contpc(frame)); } #endif } -- 2.11.4.GIT